Skip to content

Commit accb1c9

Browse files
committed
windows: add run_tests.py to distribution
To match behavior with UNIX and allow us to test dist-distribution.py to test Windows distributions.
1 parent e2e63bd commit accb1c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpython-windows/build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,6 +1766,11 @@ def build_cpython(arch: str, profile):
17661766
log("copying %s to %s" % (source, dest))
17671767
shutil.copyfile(source, dest)
17681768

1769+
shutil.copyfile(
1770+
cpython_source_path / "Tools" / "scripts" / "run_tests.py",
1771+
out_dir / "python" / "build" / "run_tests.py",
1772+
)
1773+
17691774
licenses_dir = out_dir / "python" / "licenses"
17701775
licenses_dir.mkdir()
17711776
for f in sorted(os.listdir(ROOT)):
@@ -1807,6 +1812,7 @@ def build_cpython(arch: str, profile):
18071812
"build_info": build_info,
18081813
"licenses": entry["licenses"],
18091814
"license_path": "licenses/LICENSE.cpython.txt",
1815+
"run_tests": "build/run_tests.py",
18101816
}
18111817

18121818
# Collect information from running Python script.

0 commit comments

Comments
 (0)