Skip to content

Commit 6ac4b2e

Browse files
committed
Fix Python version
1 parent 1548208 commit 6ac4b2e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

cpython-windows/build.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,18 +1221,17 @@ def build_cpython(
12211221
# The python.props file keys off MSBUILD, so it needs to be set.
12221222
os.environ["MSBUILD"] = str(msbuild)
12231223

1224-
zlib_entry = "zlib-ng" if meets_python_minimum_version("3.14") else "zlib"
1224+
python_archive = download_entry(python_entry_name, BUILD)
1225+
entry = DOWNLOADS[python_entry_name]
1226+
python_version = entry["version"]
1227+
1228+
zlib_entry = "zlib-ng" if meets_python_minimum_version(python_version, "3.14") else "zlib"
12251229

12261230
bzip2_archive = download_entry("bzip2", BUILD)
12271231
sqlite_archive = download_entry("sqlite", BUILD)
12281232
xz_archive = download_entry("xz", BUILD)
12291233
zlib_archive = download_entry(zlib_entry, BUILD)
12301234

1231-
python_archive = download_entry(python_entry_name, BUILD)
1232-
entry = DOWNLOADS[python_entry_name]
1233-
1234-
python_version = entry["version"]
1235-
12361235
setuptools_wheel = download_entry("setuptools", BUILD)
12371236
pip_wheel = download_entry("pip", BUILD)
12381237

0 commit comments

Comments
 (0)