Skip to content

Commit

Permalink
Merge pull request #2198 from PanQL/fix-interpreter-script
Browse files Browse the repository at this point in the history
use platform.system to check if it is on windows
  • Loading branch information
davidhewitt committed Mar 3, 2022
2 parents 5f39e48 + 84cb8cd commit 6fda258
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,12 @@ PyO3 versions, please see the [migration guide](https://pyo3.rs/latest/migration
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- Fix incorrect platform detection for Windows in `pyo3-build-config`. [#2198](https://github.com/PyO3/pyo3/pull/2198)

## [0.16.0] - 2022-02-27

### Packaging
Expand Down
2 changes: 1 addition & 1 deletion pyo3-build-config/src/impl_.rs
Expand Up @@ -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"))
Expand Down

0 comments on commit 6fda258

Please sign in to comment.