diff --git a/src/rust/cryptography-cffi/build.rs b/src/rust/cryptography-cffi/build.rs index bd39fba9e33b..07590ad2e593 100644 --- a/src/rust/cryptography-cffi/build.rs +++ b/src/rust/cryptography-cffi/build.rs @@ -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 =