Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(8)

Side by Side Diff: Lib/distutils/command/install.py

Issue 23437: Make user scripts directory versioned on Windows
Patch Set: Created 5 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/install/index.rst ('k') | Lib/sysconfig.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 """distutils.command.install 1 """distutils.command.install
2 2
3 Implements the Distutils 'install' command.""" 3 Implements the Distutils 'install' command."""
4 4
5 import sys 5 import sys
6 import os 6 import os
7 7
8 from distutils import log 8 from distutils import log
9 from distutils.core import Command 9 from distutils.core import Command
10 from distutils.debug import DEBUG 10 from distutils.debug import DEBUG
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 }, 44 },
45 'nt': WINDOWS_SCHEME, 45 'nt': WINDOWS_SCHEME,
46 } 46 }
47 47
48 # user site schemes 48 # user site schemes
49 if HAS_USER_SITE: 49 if HAS_USER_SITE:
50 INSTALL_SCHEMES['nt_user'] = { 50 INSTALL_SCHEMES['nt_user'] = {
51 'purelib': '$usersite', 51 'purelib': '$usersite',
52 'platlib': '$usersite', 52 'platlib': '$usersite',
53 'headers': '$userbase/Python$py_version_nodot/Include/$dist_name', 53 'headers': '$userbase/Python$py_version_nodot/Include/$dist_name',
54 'scripts': '$userbase/Scripts', 54 'scripts': '$userbase/Python$py_version_nodot/Scripts',
55 'data' : '$userbase', 55 'data' : '$userbase',
56 } 56 }
57 57
58 INSTALL_SCHEMES['unix_user'] = { 58 INSTALL_SCHEMES['unix_user'] = {
59 'purelib': '$usersite', 59 'purelib': '$usersite',
60 'platlib': '$usersite', 60 'platlib': '$usersite',
61 'headers': 61 'headers':
62 '$userbase/include/python$py_version_short$abiflags/$dist_name', 62 '$userbase/include/python$py_version_short$abiflags/$dist_name',
63 'scripts': '$userbase/bin', 63 'scripts': '$userbase/bin',
64 'data' : '$userbase', 64 'data' : '$userbase',
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 return self.distribution.has_data_files() 641 return self.distribution.has_data_files()
642 642
643 # 'sub_commands': a list of commands this command might have to run to 643 # 'sub_commands': a list of commands this command might have to run to
644 # get its work done. See cmd.py for more info. 644 # get its work done. See cmd.py for more info.
645 sub_commands = [('install_lib', has_lib), 645 sub_commands = [('install_lib', has_lib),
646 ('install_headers', has_headers), 646 ('install_headers', has_headers),
647 ('install_scripts', has_scripts), 647 ('install_scripts', has_scripts),
648 ('install_data', has_data), 648 ('install_data', has_data),
649 ('install_egg_info', lambda self:True), 649 ('install_egg_info', lambda self:True),
650 ] 650 ]
OLDNEW
« no previous file with comments | « Doc/install/index.rst ('k') | Lib/sysconfig.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+