| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,7 @@ | |||
| 10 | 10 | .gdb_history | |
| 11 | 11 | Doc/build/ | |
| 12 | 12 | Doc/venv/ | |
| 13 | + Lib/distutils/command/*.pdb | ||
| 13 | 14 | Lib/lib2to3/*.pickle | |
| 14 | 15 | Lib/test/data/* | |
| 15 | 16 | Lib/_sysconfigdata.py | |
@@ -27,23 +28,26 @@ Programs/_freeze_importlib | |||
| 27 | 28 | Programs/_testembed | |
| 28 | 29 | PC/python_nt*.h | |
| 29 | 30 | PC/pythonnt_rc*.h | |
| 30 | - PCbuild/*.bsc | ||
| 31 | - PCbuild/*.dll | ||
| 32 | - PCbuild/*.exe | ||
| 33 | - PCbuild/*.exp | ||
| 34 | - PCbuild/*.lib | ||
| 35 | - PCbuild/*.ncb | ||
| 36 | - PCbuild/*.o | ||
| 37 | - PCbuild/*.pdb | ||
| 31 | + PC/*/*.exe | ||
| 32 | + PC/*/*.exp | ||
| 33 | + PC/*/*.lib | ||
| 34 | + PC/*/*.bsc | ||
| 35 | + PC/*/*.dll | ||
| 36 | + PC/*/*.pdb | ||
| 37 | + PC/*/*.user | ||
| 38 | + PC/*/*.ncb | ||
| 39 | + PC/*/*.suo | ||
| 40 | + PC/*/Win32-temp-* | ||
| 41 | + PC/*/x64-temp-* | ||
| 42 | + PC/*/amd64 | ||
| 38 | 43 | PCbuild/*.user | |
| 39 | 44 | PCbuild/*.suo | |
| 40 | 45 | PCbuild/*.*sdf | |
| 41 | - PCbuild/Win32-temp-* | ||
| 42 | - PCbuild/x64-temp-* | ||
| 43 | 46 | PCbuild/*-pgi | |
| 44 | 47 | PCbuild/*-pgo | |
| 45 | 48 | PCbuild/amd64/ | |
| 46 | - PCbuild/ipch | ||
| 49 | + PCbuild/obj | ||
| 50 | + PCBuild/win32 | ||
| 47 | 51 | .purify | |
| 48 | 52 | Parser/pgen | |
| 49 | 53 | __pycache__ | |
@@ -78,3 +82,5 @@ TAGS | |||
| 78 | 82 | coverage/ | |
| 79 | 83 | externals/ | |
| 80 | 84 | htmlcov/ | |
| 85 | + Tools/ssl/amd64 | ||
| 86 | + Tools/ssl/win32 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,13 +50,12 @@ libpython*.so* | |||
| 50 | 50 | *.pyd | |
| 51 | 51 | *.cover | |
| 52 | 52 | *~ | |
| 53 | + Lib/distutils/command/*.pdb | ||
| 53 | 54 | Lib/lib2to3/*.pickle | |
| 54 | 55 | Lib/test/data/* | |
| 55 | 56 | Misc/*.wpu | |
| 56 | 57 | PC/python_nt*.h | |
| 57 | 58 | PC/pythonnt_rc*.h | |
| 58 | - PC/*.obj | ||
| 59 | - PC/*.exe | ||
| 60 | 59 | PC/*/*.exe | |
| 61 | 60 | PC/*/*.exp | |
| 62 | 61 | PC/*/*.lib | |
@@ -69,23 +68,14 @@ PC/*/*.suo | |||
| 69 | 68 | PC/*/Win32-temp-* | |
| 70 | 69 | PC/*/x64-temp-* | |
| 71 | 70 | PC/*/amd64 | |
| 72 | - PCbuild/*.exe | ||
| 73 | - PCbuild/*.dll | ||
| 74 | - PCbuild/*.pdb | ||
| 75 | - PCbuild/*.lib | ||
| 76 | - PCbuild/*.exp | ||
| 77 | - PCbuild/*.o | ||
| 78 | - PCbuild/*.ncb | ||
| 79 | - PCbuild/*.bsc | ||
| 80 | 71 | PCbuild/*.user | |
| 81 | 72 | PCbuild/*.suo | |
| 82 | 73 | PCbuild/*.*sdf | |
| 83 | - PCbuild/Win32-temp-* | ||
| 84 | - PCbuild/x64-temp-* | ||
| 85 | 74 | PCbuild/*-pgi | |
| 86 | 75 | PCbuild/*-pgo | |
| 87 | 76 | PCbuild/amd64 | |
| 88 | - PCbuild/ipch | ||
| 77 | + PCbuild/obj | ||
| 78 | + PCbuild/win32 | ||
| 89 | 79 | Tools/unicode/build/ | |
| 90 | 80 | Tools/unicode/MAPPINGS/ | |
| 91 | 81 | BuildLog.htm | |
@@ -100,3 +90,5 @@ htmlcov/ | |||
| 100 | 90 | *.gcno | |
| 101 | 91 | *.gcov | |
| 102 | 92 | coverage.info | |
| 93 | + Tools/ssl/amd64 | ||
| 94 | + Tools/ssl/win32 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,6 +19,8 @@ def _get_build_version(): | |||
| 19 | 19 | i = i + len(prefix) | |
| 20 | 20 | s, rest = sys.version[i:].split(" ", 1) | |
| 21 | 21 | majorVersion = int(s[:-2]) - 6 | |
| 22 | + if majorVersion >= 13: | ||
| 23 | + majorVersion += 1 | ||
| 22 | 24 | minorVersion = int(s[2:3]) / 10.0 | |
| 23 | 25 | # I don't think paths are affected by minor version in version 6 | |
| 24 | 26 | if majorVersion == 6: | |
@@ -36,8 +38,10 @@ def find_msvcrt(): | |||
| 36 | 38 | return None | |
| 37 | 39 | if version <= 6: | |
| 38 | 40 | clibname = 'msvcrt' | |
| 39 | - else: | ||
| 41 | + elif version <= 13: | ||
| 40 | 42 | clibname = 'msvcr%d' % (version * 10) | |
| 43 | + else: | ||
| 44 | + clibname = 'appcrt%d' % (version * 10) | ||
| 41 | 45 | ||
| 42 | 46 | # If python was built with in debug mode | |
| 43 | 47 | import importlib.machinery | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -209,7 +209,7 @@ def finalize_options(self): | |||
| 209 | 209 | if MSVC_VERSION >= 9: | |
| 210 | 210 | # Use the .lib files for the correct architecture | |
| 211 | 211 | if self.plat_name == 'win32': | |
| 212 | - suffix = '' | ||
| 212 | + suffix = 'win32' | ||
| 213 | 213 | else: | |
| 214 | 214 | # win-amd64 or win-ia64 | |
| 215 | 215 | suffix = self.plat_name[4:] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -179,6 +179,9 @@ def get_build_version(): | |||
| 179 | 179 | i = i + len(prefix) | |
| 180 | 180 | s, rest = sys.version[i:].split(" ", 1) | |
| 181 | 181 | majorVersion = int(s[:-2]) - 6 | |
| 182 | + if majorVersion >= 13: | ||
| 183 | + # v13 was skipped and should be v14 | ||
| 184 | + majorVersion += 1 | ||
| 182 | 185 | minorVersion = int(s[2:3]) / 10.0 | |
| 183 | 186 | # I don't think paths are affected by minor version in version 6 | |
| 184 | 187 | if majorVersion == 6: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -157,6 +157,9 @@ def get_build_version(): | |||
| 157 | 157 | i = i + len(prefix) | |
| 158 | 158 | s, rest = sys.version[i:].split(" ", 1) | |
| 159 | 159 | majorVersion = int(s[:-2]) - 6 | |
| 160 | + if majorVersion >= 13: | ||
| 161 | + # v13 was skipped and should be v14 | ||
| 162 | + majorVersion += 1 | ||
| 160 | 163 | minorVersion = int(s[2:3]) / 10.0 | |
| 161 | 164 | # I don't think paths are affected by minor version in version 6 | |
| 162 | 165 | if majorVersion == 6: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,7 @@ | |||
| 9 | 9 | Email: <fdrake@acm.org> | |
| 10 | 10 | """ | |
| 11 | 11 | ||
| 12 | + import _imp | ||
| 12 | 13 | import os | |
| 13 | 14 | import re | |
| 14 | 15 | import sys | |
@@ -22,23 +23,15 @@ | |||
| 22 | 23 | BASE_EXEC_PREFIX = os.path.normpath(sys.base_exec_prefix) | |
| 23 | 24 | ||
| 24 | 25 | # Path to the base directory of the project. On Windows the binary may | |
| 25 | - # live in project/PCBuild9. If we're dealing with an x64 Windows build, | ||
| 26 | - # it'll live in project/PCbuild/amd64. | ||
| 26 | + # live in project/PCBuild/win32 or project/PCBuild/amd64. | ||
| 27 | 27 | # set for cross builds | |
| 28 | 28 | if "_PYTHON_PROJECT_BASE" in os.environ: | |
| 29 | 29 | project_base = os.path.abspath(os.environ["_PYTHON_PROJECT_BASE"]) | |
| 30 | 30 | else: | |
| 31 | 31 | project_base = os.path.dirname(os.path.abspath(sys.executable)) | |
| 32 | - if os.name == "nt" and "pcbuild" in project_base[-8:].lower(): | ||
| 33 | - project_base = os.path.abspath(os.path.join(project_base, os.path.pardir)) | ||
| 34 | - # PC/VS7.1 | ||
| 35 | - if os.name == "nt" and "\\pc\\v" in project_base[-10:].lower(): | ||
| 36 | - project_base = os.path.abspath(os.path.join(project_base, os.path.pardir, | ||
| 37 | - os.path.pardir)) | ||
| 38 | - # PC/AMD64 | ||
| 39 | - if os.name == "nt" and "\\pcbuild\\amd64" in project_base[-14:].lower(): | ||
| 40 | - project_base = os.path.abspath(os.path.join(project_base, os.path.pardir, | ||
| 41 | - os.path.pardir)) | ||
| 32 | + if (os.name == 'nt' and | ||
| 33 | + project_base.lower().endswith(('\\pcbuild\\win32', '\\pcbuild\\amd64'))): | ||
| 34 | + project_base = os.path.dirname(os.path.dirname(project_base)) | ||
| 42 | 35 | ||
| 43 | 36 | # python_build: (Boolean) if true, we're either building Python or | |
| 44 | 37 | # building an extension with an un-installed Python, so we use | |
@@ -51,11 +44,9 @@ def _is_python_source_dir(d): | |||
| 51 | 44 | return True | |
| 52 | 45 | return False | |
| 53 | 46 | _sys_home = getattr(sys, '_home', None) | |
| 54 | - if _sys_home and os.name == 'nt' and \ | ||
| 55 | - _sys_home.lower().endswith(('pcbuild', 'pcbuild\\amd64')): | ||
| 56 | - _sys_home = os.path.dirname(_sys_home) | ||
| 57 | - if _sys_home.endswith('pcbuild'): # must be amd64 | ||
| 58 | - _sys_home = os.path.dirname(_sys_home) | ||
| 47 | + if (_sys_home and os.name == 'nt' and | ||
| 48 | + _sys_home.lower().endswith(('\\pcbuild\\win32', '\\pcbuild\\amd64'))): | ||
| 49 | + _sys_home = os.path.dirname(os.path.dirname(_sys_home)) | ||
| 59 | 50 | def _python_build(): | |
| 60 | 51 | if _sys_home: | |
| 61 | 52 | return _is_python_source_dir(_sys_home) | |
@@ -468,7 +459,7 @@ def _init_nt(): | |||
| 468 | 459 | # XXX hmmm.. a normal install puts include files here | |
| 469 | 460 | g['INCLUDEPY'] = get_python_inc(plat_specific=0) | |
| 470 | 461 | ||
| 471 | - g['EXT_SUFFIX'] = '.pyd' | ||
| 462 | + g['EXT_SUFFIX'] = _imp.extension_suffixes()[0] | ||
| 472 | 463 | g['EXE'] = ".exe" | |
| 473 | 464 | g['VERSION'] = get_python_version().replace(".", "") | |
| 474 | 465 | g['BINDIR'] = os.path.dirname(os.path.abspath(sys.executable)) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -109,13 +109,8 @@ def _safe_realpath(path): | |||
| 109 | 109 | # unable to retrieve the real program name | |
| 110 | 110 | _PROJECT_BASE = _safe_realpath(os.getcwd()) | |
| 111 | 111 | ||
| 112 | - if os.name == "nt" and "pcbuild" in _PROJECT_BASE[-8:].lower(): | ||
| 113 | - _PROJECT_BASE = _safe_realpath(os.path.join(_PROJECT_BASE, pardir)) | ||
| 114 | - # PC/VS7.1 | ||
| 115 | - if os.name == "nt" and "\\pc\\v" in _PROJECT_BASE[-10:].lower(): | ||
| 116 | - _PROJECT_BASE = _safe_realpath(os.path.join(_PROJECT_BASE, pardir, pardir)) | ||
| 117 | - # PC/AMD64 | ||
| 118 | - if os.name == "nt" and "\\pcbuild\\amd64" in _PROJECT_BASE[-14:].lower(): | ||
| 112 | + if (os.name == 'nt' and | ||
| 113 | + _PROJECT_BASE.lower().endswith(('\\pcbuild\\win32', '\\pcbuild\\amd64'))): | ||
| 119 | 114 | _PROJECT_BASE = _safe_realpath(os.path.join(_PROJECT_BASE, pardir, pardir)) | |
| 120 | 115 | ||
| 121 | 116 | # set for cross builds | |
@@ -129,11 +124,9 @@ def _is_python_source_dir(d): | |||
| 129 | 124 | return False | |
| 130 | 125 | ||
| 131 | 126 | _sys_home = getattr(sys, '_home', None) | |
| 132 | - if _sys_home and os.name == 'nt' and \ | ||
| 133 | - _sys_home.lower().endswith(('pcbuild', 'pcbuild\\amd64')): | ||
| 134 | - _sys_home = os.path.dirname(_sys_home) | ||
| 135 | - if _sys_home.endswith('pcbuild'): # must be amd64 | ||
| 136 | - _sys_home = os.path.dirname(_sys_home) | ||
| 127 | + if (_sys_home and os.name == 'nt' and | ||
| 128 | + _sys_home.lower().endswith(('\\pcbuild\\win32', '\\pcbuild\\amd64'))): | ||
| 129 | + _sys_home = os.path.dirname(os.path.dirname(_sys_home)) | ||
| 137 | 130 | def is_python_build(check_home=False): | |
| 138 | 131 | if check_home and _sys_home: | |
| 139 | 132 | return _is_python_source_dir(_sys_home) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments