Skip to content

Commit

Permalink
update build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
trappitsch committed Mar 11, 2024
1 parent 310cf14 commit 3526337
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3526337

Please sign in to comment.