diff --git a/pyo3-build-config/src/impl_.rs b/pyo3-build-config/src/impl_.rs index b026e76a..af6bf126 100644 --- a/pyo3-build-config/src/impl_.rs +++ b/pyo3-build-config/src/impl_.rs @@ -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"))