Skip to content

Commit 9de5fd3

Browse files
committed
windows: properly test against Python version string
The value passed in here is `XY` not `X.Y`. That means that our `pathcch` and `shlwapi` annotations were incorrect prior to this change. This fixes bugs in the following commits: * 9fb81f1 * cc9da9c * 4ff995a
1 parent a804c18 commit 9de5fd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpython-windows/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,11 +1876,11 @@ def find_additional_dependencies(project: pathlib.Path):
18761876
]
18771877

18781878
# pathcch is required on 3.9+ and its presence drops support for Windows 7.
1879-
if python_majmin != "3.8":
1879+
if python_majmin != "38":
18801880
res["core"]["links"].append({"name": "pathcch", "system": True})
18811881

18821882
# shlwapi was dropped from 3.9.9+.
1883-
if python_majmin == "3.8":
1883+
if python_majmin == "38":
18841884
res["core"]["links"].append({"name": "shlwapi", "system": True})
18851885

18861886
# Copy files for extensions into their own directories.

0 commit comments

Comments
 (0)