From 352633719aa993b2f52ed6bb284d3df4b7d9afee Mon Sep 17 00:00:00 2001 From: Reto Trappitsch Date: Mon, 11 Mar 2024 16:03:05 +0100 Subject: [PATCH] update build.rs --- build.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.rs b/build.rs index 47ea958..f9acb3a 100644 --- a/build.rs +++ b/build.rs @@ -627,6 +627,15 @@ fn set_python_path(distribution_source: &str) { } else { set_runtime_variable(installation_variable, "bin/python3"); }; + + let installation_variable_pythonw = "PYAPP__INSTALLATION_PYTHONW_PATH"; + if is_enabled("PYAPP_FULL_ISOLATION") { + set_runtime_variable(installation_variable_pythonw, &relative_path); + } else if on_windows { + set_runtime_variable(installation_variable_pythonw, r"Scripts\pythonw.exe"); + } else { + set_runtime_variable(installation_variable_pythonw, "bin/python3"); + }; } fn set_site_packages_path(distribution_source: &str) {