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

Side by Side Diff: Lib/sysconfig.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 | « Lib/distutils/command/install.py ('k') | Tools/scripts/win_add2path.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 """Access to Python's configuration information.""" 1 """Access to Python's configuration information."""
2 2
3 import os 3 import os
4 import sys 4 import sys
5 from os.path import pardir, realpath 5 from os.path import pardir, realpath
6 6
7 __all__ = [ 7 __all__ = [
8 'get_config_h_filename', 8 'get_config_h_filename',
9 'get_config_var', 9 'get_config_var',
10 'get_config_vars', 10 'get_config_vars',
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 'platinclude': '{installed_base}/Include', 50 'platinclude': '{installed_base}/Include',
51 'scripts': '{base}/Scripts', 51 'scripts': '{base}/Scripts',
52 'data': '{base}', 52 'data': '{base}',
53 }, 53 },
54 'nt_user': { 54 'nt_user': {
55 'stdlib': '{userbase}/Python{py_version_nodot}', 55 'stdlib': '{userbase}/Python{py_version_nodot}',
56 'platstdlib': '{userbase}/Python{py_version_nodot}', 56 'platstdlib': '{userbase}/Python{py_version_nodot}',
57 'purelib': '{userbase}/Python{py_version_nodot}/site-packages', 57 'purelib': '{userbase}/Python{py_version_nodot}/site-packages',
58 'platlib': '{userbase}/Python{py_version_nodot}/site-packages', 58 'platlib': '{userbase}/Python{py_version_nodot}/site-packages',
59 'include': '{userbase}/Python{py_version_nodot}/Include', 59 'include': '{userbase}/Python{py_version_nodot}/Include',
60 'scripts': '{userbase}/Scripts', 60 'scripts': '{userbase}/Python{py_version_nodot}/Scripts',
61 'data': '{userbase}', 61 'data': '{userbase}',
62 }, 62 },
63 'posix_user': { 63 'posix_user': {
64 'stdlib': '{userbase}/lib/python{py_version_short}', 64 'stdlib': '{userbase}/lib/python{py_version_short}',
65 'platstdlib': '{userbase}/lib/python{py_version_short}', 65 'platstdlib': '{userbase}/lib/python{py_version_short}',
66 'purelib': '{userbase}/lib/python{py_version_short}/site-packages', 66 'purelib': '{userbase}/lib/python{py_version_short}/site-packages',
67 'platlib': '{userbase}/lib/python{py_version_short}/site-packages', 67 'platlib': '{userbase}/lib/python{py_version_short}/site-packages',
68 'include': '{userbase}/include/python{py_version_short}', 68 'include': '{userbase}/include/python{py_version_short}',
69 'scripts': '{userbase}/bin', 69 'scripts': '{userbase}/bin',
70 'data': '{userbase}', 70 'data': '{userbase}',
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 print('Python version: "%s"' % get_python_version()) 693 print('Python version: "%s"' % get_python_version())
694 print('Current installation scheme: "%s"' % _get_default_scheme()) 694 print('Current installation scheme: "%s"' % _get_default_scheme())
695 print() 695 print()
696 _print_dict('Paths', get_paths()) 696 _print_dict('Paths', get_paths())
697 print() 697 print()
698 _print_dict('Variables', get_config_vars()) 698 _print_dict('Variables', get_config_vars())
699 699
700 700
701 if __name__ == '__main__': 701 if __name__ == '__main__':
702 _main() 702 _main()
OLDNEW
« no previous file with comments | « Lib/distutils/command/install.py ('k') | Tools/scripts/win_add2path.py » ('j') | no next file with comments »

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