Skip to content

Commit

Permalink
Merge pull request #96 from KoichiYasuoka/patch-2
Browse files Browse the repository at this point in the history
Enable PYTHON_SYS_EXECUTABLE
  • Loading branch information
davidhewitt authored Dec 23, 2020
2 parents dc6c90e + 7ee640a commit 08e7b6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- Respect `PYO3_PYTHON` and `PYTHON_SYS_EXECUTABLE` environment variables if set. [#96](https://github.com/PyO3/setuptools-rust/pull/96)

## 0.11.6 (2020-12-13)

- Respect `CARGO_BUILD_TARGET` environment variable if set. [#90](https://github.com/PyO3/setuptools-rust/pull/90)
Expand Down
4 changes: 2 additions & 2 deletions setuptools_rust/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def build_extension(self, ext):
# which causes pythonXX-sys to fall back to detecting the
# interpreter from the path.
"PATH": os.path.join(bindir, os.environ.get("PATH", "")),
"PYTHON_SYS_EXECUTABLE": sys.executable,
"PYO3_PYTHON": sys.executable,
"PYTHON_SYS_EXECUTABLE": os.environ.get("PYTHON_SYS_EXECUTABLE", sys.executable),
"PYO3_PYTHON": os.environ.get("PYO3_PYTHON", sys.executable),
}
)
rustflags = ""
Expand Down

0 comments on commit 08e7b6f

Please sign in to comment.