use platform.system to check if it is on windows

This commit is contained in:
PanQL 2022-03-01 17:26:19 +08:00
parent 537c7114c5
commit 5ac495e547

View file

@ -188,7 +188,7 @@ def print_if_set(varname, value):
print(varname, value)
# Windows always uses shared linking
WINDOWS = hasattr(platform, "win32_ver")
WINDOWS = platform.system() == "Windows"
# macOS framework packages use shared linking
FRAMEWORK = bool(get_config_var("PYTHONFRAMEWORK"))