@@ -830,18 +830,13 @@ def hack_project_files(
830
830
831
831
copy_link_to_lib (pythoncore_proj )
832
832
833
- # We don't need to produce pythonw .exe and python_uwp.exe
834
- # and their *w variants. Or the python3.dll, pyshellext, or pylauncher.
833
+ # We don't need to produce python_uwp .exe and its *w variant. Or the
834
+ # python3.dll, pyshellext, or pylauncher.
835
835
# Cut them from the build to save time and so their presence doesn't
836
836
# interfere with packaging up the build artifacts.
837
837
838
838
pcbuild_proj = pcbuild_path / "pcbuild.proj"
839
839
840
- static_replace_in_file (
841
- pcbuild_proj ,
842
- b'<Projects2 Include="python.vcxproj;pythonw.vcxproj" />' ,
843
- b'<Projects2 Include="python.vcxproj" />' ,
844
- )
845
840
static_replace_in_file (
846
841
pcbuild_proj ,
847
842
b'<Projects2 Include="python_uwp.vcxproj;pythonw_uwp.vcxproj" Condition="$(IncludeUwp)" />' ,
@@ -1037,13 +1032,6 @@ def hack_source_files(source_path: pathlib.Path, static: bool):
1037
1032
layout_main , b" yield from in_build(PYTHON_DLL_NAME)\n " , b""
1038
1033
)
1039
1034
1040
- # We don't produce a pythonw.exe.
1041
- static_replace_in_file (
1042
- layout_main ,
1043
- b' yield from in_build("pythonw.exe", new_name="pythonw")\n ' ,
1044
- b"" ,
1045
- )
1046
-
1047
1035
1048
1036
def run_msbuild (
1049
1037
msbuild : pathlib .Path ,
@@ -1235,6 +1223,7 @@ def collect_python_build_artifacts(
1235
1223
ignore_projects = {
1236
1224
# We don't care about build artifacts for the python executable.
1237
1225
"python" ,
1226
+ "pythonw" ,
1238
1227
# Don't care about venvlauncher executable.
1239
1228
"venvlauncher" ,
1240
1229
"venvwlauncher" ,
0 commit comments