From b35fed00d782336c6769a6ebe1007364a1702ced Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Tue, 12 Apr 2022 07:54:23 +0100 Subject: [PATCH] build: add hint when PYO3_PRINT_CONFIG is set --- pyo3-ffi/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pyo3-ffi/build.rs b/pyo3-ffi/build.rs index f46c13b5..1dd37820 100644 --- a/pyo3-ffi/build.rs +++ b/pyo3-ffi/build.rs @@ -111,6 +111,7 @@ fn print_config_and_exit(config: &InterpreterConfig) { config .to_writer(&mut std::io::stdout()) .expect("failed to print config to stdout"); + println!("\nnote: unset the PYO3_PRINT_CONFIG environment variable and retry to compile with the above config"); std::process::exit(101); }