@@ -1869,16 +1869,17 @@ def find_additional_dependencies(project: pathlib.Path):
1869
1869
{"name" : "shlwapi" , "system" : True },
1870
1870
{"name" : "version" , "system" : True },
1871
1871
{"name" : "ws2_32" , "system" : True },
1872
- # pathcch is Windows 8+ only. Python 3.9 dropped support for Windows 7.
1873
- # So this dependency is technically incorrect on Python 3.8.
1874
- {"name" : "pathcch" , "system" : True },
1875
1872
# In addition to the ones explicitly in the project, there are some
1876
1873
# implicit link libraries not present. We list those as well.
1877
1874
{"name" : "Ole32" , "system" : True },
1878
1875
{"name" : "OleAut32" , "system" : True },
1879
1876
{"name" : "User32" , "system" : True },
1880
1877
]
1881
1878
1879
+ # pathcch is required on 3.9+ and its presence drops support for Windows 7.
1880
+ if python_majmin != "3.8" :
1881
+ res ["core" ]["links" ].append ({"name" : "pathcch" , "system" : True })
1882
+
1882
1883
# Copy files for extensions into their own directories.
1883
1884
for ext in sorted (extension_projects ):
1884
1885
dest_dir = out_dir / "build" / "extensions" / ext
0 commit comments