Skip to content

Commit 4ff995a

Browse files
Jason Mobarakindygreg
authored andcommitted
windows: restore windows 7 support on Python 3.8
Closes #101.
1 parent d3898eb commit 4ff995a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

cpython-windows/build.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,16 +1869,17 @@ def find_additional_dependencies(project: pathlib.Path):
18691869
{"name": "shlwapi", "system": True},
18701870
{"name": "version", "system": True},
18711871
{"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},
18751872
# In addition to the ones explicitly in the project, there are some
18761873
# implicit link libraries not present. We list those as well.
18771874
{"name": "Ole32", "system": True},
18781875
{"name": "OleAut32", "system": True},
18791876
{"name": "User32", "system": True},
18801877
]
18811878

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+
18821883
# Copy files for extensions into their own directories.
18831884
for ext in sorted(extension_projects):
18841885
dest_dir = out_dir / "build" / "extensions" / ext

docs/running.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ Linux system.
7575
Windows
7676
-------
7777

78-
Windows distributions require Windows 8 or Windows Server 2012 or newer. (The
79-
official Python distributions support Windows 7 up to Python 3.8 and dropped
80-
support for Windows 7 with Python 3.9. However, we've decided to drop
81-
support for Windows 7 from our Windows distributions.)
78+
Windows distributions model the requirements of the official Python
79+
distributions:
80+
81+
* Windows 7 or Windows Server 2012 or newer on Python 3.8.
82+
* Windows 8 or Windows Server 2012 or newer on Python 3.9+.
8283

8384
Windows binaries have a dependency on the Microsoft Visual C++ Redistributable,
8485
likely from MSVC 2015 (``vcruntime140.dll``). This dependency is not

0 commit comments

Comments
 (0)