From 6d6d030bf7a13fcf70ba2346b578efd40c4b8b59 Mon Sep 17 00:00:00 2001 From: Sergey Kvachonok Date: Mon, 29 Mar 2021 08:47:11 +0300 Subject: [PATCH] Remove unused cross-compile environment variables PYO3_CROSS_VERSION was renamed to PYO3_CROSS_PYTHON_VERSION. PYO3_CROSS_INCLUDE_DIR was removed in https://github.com/PyO3/pyo3/pull/1521 --- build.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build.rs b/build.rs index 08c30996..1e2e3e82 100644 --- a/build.rs +++ b/build.rs @@ -144,8 +144,6 @@ impl CrossCompileConfig { fn cross_compiling() -> Result> { if env::var_os("PYO3_CROSS").is_none() && env::var_os("PYO3_CROSS_LIB_DIR").is_none() - && env::var_os("PYO3_CROSS_INCLUDE_DIR").is_none() - && env::var_os("PYO3_CROSS_VERSION").is_none() && env::var_os("PYO3_CROSS_PYTHON_VERSION").is_none() { let target = env::var("TARGET")?; @@ -489,7 +487,7 @@ fn windows_hardcoded_cross_compile( ) { (Some(major), Some(minor), None) => (major, minor), _ => bail!( - "Expected major.minor version (e.g. 3.9) for PYO3_CROSS_VERSION, got `{}`", + "Expected major.minor version (e.g. 3.9) for PYO3_CROSS_PYTHON_VERSION, got `{}`", version ), }