Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
[ci skip-build-wheels]

[ci skip-rust]
  • Loading branch information
stuhood committed Oct 21, 2022
1 parent 9149e7d commit 4015bef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions build-support/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ function git_merge_base() {

function determine_python() {
if [[ -n "${PY:-}" ]]; then
echo "${PY}"
return 0
which "${PY}" && return 0
fi

local candidate_versions
Expand Down
3 changes: 3 additions & 0 deletions src/rust/engine/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ fn main() {
// NB: The native extension only works with the Python interpreter version it was built with
// (e.g. Python 3.7 vs 3.8).
println!("cargo:rerun-if-env-changed=PY");
if let Ok(py_var) = std::env::var("PY") {
println!("cargo:rerun-if-changed={py_var}");
}
}

0 comments on commit 4015bef

Please sign in to comment.