Skip to content

Commit 19484f8

Browse files
committed
bundle wmi to get reliable Windows OS version detection
1 parent f1dd074 commit 19484f8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packaging/MSWindows/BUILD.py

-2
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,6 @@ def trim_python_libs() -> None:
679679
step("Removing unnecessary Python modules")
680680
# remove test bits we don't need:
681681
delete_libs(
682-
"pywin*",
683-
"win32com",
684682
"backports",
685683
"importlib_resources/compat",
686684
"importlib_resources/tests",

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,7 @@ def add_service_exe(script, icon, base_name) -> None:
21082108
"pyu2f",
21092109
"mmap",
21102110
"comtypes", "comtypes.stream", # used by webcam, netdev_query, taskbar progress (file-transfers), etc
2111-
#"wmi", "win32com",
2111+
"wmi", "win32com",
21122112
]
21132113
# this is generated at runtime,
21142114
# but we still have to remove the empty directory by hand

0 commit comments

Comments
 (0)