Skip to content

Commit

Permalink
Revert "cryptography-cffi: substitute include path from target sysroo…
Browse files Browse the repository at this point in the history
…t in cross builds (pyca#9105)"

The original code was right all along: it uses the official API for
obtaining header locations, and it is on the build environment
to ensure python supplies that in cross-build scenarios
(another option is to apply a custom patch, however any such patch
is not eligible for upstream submission due to its specificity).

Further info: pyca#9129
  • Loading branch information
Alexander Kanavin committed Jun 24, 2023
1 parent 4806828 commit e051c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/cryptography-cffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fn main() {
println!("cargo:rustc-cfg=python_implementation=\"{}\"", python_impl);
let python_include = run_python_script(
&python,
"import sysconfig; print(sysconfig.get_config_var('INCLUDEPY'), end='')",
"import sysconfig; print(sysconfig.get_path('include'), end='')",
)
.unwrap();
let openssl_include =
Expand Down

0 comments on commit e051c06

Please sign in to comment.