diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-04-26 19:54:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 19:54:25 (GMT) |
commit | f65f3f0e99b27e0a4ea6bb7e30c5bdb5832a76c6 (patch) | |
tree | 7909e399db4c58909a4317a29f0ff6d846977acd /PCbuild | |
parent | ba7338a46038bdb55159bf37e7ad83f177e5257b (diff) | |
download | cpython-f65f3f0e99b27e0a4ea6bb7e30c5bdb5832a76c6.zip cpython-f65f3f0e99b27e0a4ea6bb7e30c5bdb5832a76c6.tar.gz cpython-f65f3f0e99b27e0a4ea6bb7e30c5bdb5832a76c6.tar.bz2 |
bpo-40432: Use python 3.8 or higher to compile CPython on Windows (GH-25389) (#25637)
(cherry picked from commit 425434dadc30d96dc1c0c628f954f9b6f5edd2c9)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/find_python.bat | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PCbuild/find_python.bat b/PCbuild/find_python.bat index 75413cd..d0e4a86 100644 --- a/PCbuild/find_python.bat +++ b/PCbuild/find_python.bat @@ -34,10 +34,10 @@ @if exist "%_Py_EXTERNALS_DIR%\pythonx86\tools\python.exe" (set PYTHON="%_Py_EXTERNALS_DIR%\pythonx86\tools\python.exe") & (set _Py_Python_Source=found in externals directory) & goto :found @rem If HOST_PYTHON is recent enough, use that -@if NOT "%HOST_PYTHON%"=="" @%HOST_PYTHON% -Ec "import sys; assert sys.version_info[:2] >= (3, 6)" >nul 2>nul && (set PYTHON="%HOST_PYTHON%") && (set _Py_Python_Source=found as HOST_PYTHON) && goto :found +@if NOT "%HOST_PYTHON%"=="" @%HOST_PYTHON% -Ec "import sys; assert sys.version_info[:2] >= (3, 8)" >nul 2>nul && (set PYTHON="%HOST_PYTHON%") && (set _Py_Python_Source=found as HOST_PYTHON) && goto :found @rem If py.exe finds a recent enough version, use that one -@for %%p in (3.8 3.7 3.6) do @py -%%p -EV >nul 2>&1 && (set PYTHON=py -%%p) && (set _Py_Python_Source=found %%p with py.exe) && goto :found +@for %%p in (3.9 3.8) do @py -%%p -EV >nul 2>&1 && (set PYTHON=py -%%p) && (set _Py_Python_Source=found %%p with py.exe) && goto :found @if NOT exist "%_Py_EXTERNALS_DIR%" mkdir "%_Py_EXTERNALS_DIR%" @set _Py_NUGET=%NUGET% |