summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-11-07 21:12:56 (GMT)
committerGitHub <noreply@github.com>2022-11-07 21:12:56 (GMT)
commit1e5e38b0ee45f0ebb04d7c24b4abce9f6f6e877e (patch)
tree5f3e6e1d5691baf6f39d064926c0aa0dfda3163f /PCbuild
parent857f6a44a5781be9e29ccb4df0ada98aea64126c (diff)
downloadcpython-1e5e38b0ee45f0ebb04d7c24b4abce9f6f6e877e.zip
cpython-1e5e38b0ee45f0ebb04d7c24b4abce9f6f6e877e.tar.gz
cpython-1e5e38b0ee45f0ebb04d7c24b4abce9f6f6e877e.tar.bz2
gh-94280: Require Python 3.9 or higher to compile CPython on Windows (GH-94281)
(cherry picked from commit acc6468f7ee0d1f22633f0b84df28f69e75f1260) Co-authored-by: Shixian Li <34830785+znsoooo@users.noreply.github.com>
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/find_python.bat4
1 files changed, 2 insertions, 2 deletions
diff --git a/PCbuild/find_python.bat b/PCbuild/find_python.bat
index fc1049c..11d6cba 100644
--- a/PCbuild/find_python.bat
+++ b/PCbuild/find_python.bat
@@ -39,10 +39,10 @@
@if exist "%_Py_EXTERNALS_DIR%\pythonx86\tools\python.exe" ("%_Py_EXTERNALS_DIR%\pythonx86\tools\python.exe" -Ec "import sys; assert sys.version_info[:2] >= (3, 8)" >nul 2>nul) && (set PYTHON="%_Py_EXTERNALS_DIR%\pythonx86\tools\python.exe") && (set _Py_Python_Source=found in externals directory) && goto :found || rmdir /Q /S "%_Py_EXTERNALS_DIR%\pythonx86"
@rem If HOST_PYTHON is recent enough, use that
-@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
+@if NOT "%HOST_PYTHON%"=="" @%HOST_PYTHON% -Ec "import sys; assert sys.version_info[:2] >= (3, 9)" >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.10 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
+@for %%p in (3.10 3.9) 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%