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 0d0bf46 commit 18d4214
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 18d4214

Please sign in to comment.