Skip to content

Commit

Permalink
Remove PYO3_NO_PYTHON hack for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Mar 14, 2022
1 parent 0c96687 commit 120ea33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ fn compile_target(
let is_pypy = python_interpreter
.map(|p| p.interpreter_kind == InterpreterKind::PyPy)
.unwrap_or(false);
if !is_pypy {
if !is_pypy && !target.is_windows() {
// This will make pyo3's build script only set some predefined linker
// arguments without trying to read any python configuration
build_command.env("PYO3_NO_PYTHON", "1");
Expand Down

0 comments on commit 120ea33

Please sign in to comment.