-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix python version cfg * Fix build.rs and add pyo3-build-config * change minimum for fastcall to py3.8 Co-authored-by: Łuczak, Piotr <[email protected]> Co-authored-by: Aviram Hassan <[email protected]>
- Loading branch information
1 parent
71e6926
commit b689f0b
Showing
4 changed files
with
15 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
use std::process::Command; | ||
|
||
fn main() { | ||
let out = Command::new("python") | ||
.args(&["-c", "import sys; print(sys.version_info[1])"]) | ||
.output() | ||
.expect("python version did not print"); | ||
let version = String::from_utf8_lossy(&out.stdout) | ||
.trim() | ||
.parse::<u8>() | ||
.expect("python version was not parsed"); | ||
for each in 6..version { | ||
println!("cargo:rustc-cfg=python3{}", each); | ||
} | ||
pyo3_build_config::use_pyo3_cfgs(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters