From 18d4214c25412229c6b98e1e8345d6e0a4f61806 Mon Sep 17 00:00:00 2001 From: messense Date: Mon, 14 Mar 2022 21:29:34 +0800 Subject: [PATCH] Remove `PYO3_NO_PYTHON` hack for Windows --- src/compile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile.rs b/src/compile.rs index f83e9d9bd..b8f92225f 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -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");