Skip to content

Commit ea4b3e6

Browse files
committed
windows: include venv and test modules in distribution
These are useful to include. Closes #19.
1 parent 81d1130 commit ea4b3e6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cpython-windows/build.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,18 @@ def hack_source_files(source_path: pathlib.Path, static: bool):
10551055
b"",
10561056
)
10571057

1058+
# We don't produce venvlauncher executables.
1059+
static_replace_in_file(
1060+
layout_main,
1061+
b'yield from in_build("venvlauncher.exe", "Lib/venv/scripts/nt/", "python")',
1062+
b"pass",
1063+
)
1064+
static_replace_in_file(
1065+
layout_main,
1066+
b'yield from in_build("venvwlauncher.exe", "Lib/venv/scripts/nt/", "pythonw")',
1067+
b"pass",
1068+
)
1069+
10581070

10591071
def run_msbuild(
10601072
msbuild: pathlib.Path,
@@ -1666,6 +1678,8 @@ def build_cpython(arch: str, pgo=False, build_mode="static"):
16661678
str(layout_tmp),
16671679
"--include-dev",
16681680
"--include-distutils",
1681+
"--include-tests",
1682+
"--include-venv",
16691683
]
16701684

16711685
if static:

0 commit comments

Comments
 (0)