From cf213252fa5c780503cb1772622a38d7b34cd874 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Tue, 2 Jan 2024 20:57:14 +0000 Subject: [PATCH] re-add emit_pyo3_cfgs for pyo3 0.20.0 compatibility --- pyo3-build-config/src/impl_.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyo3-build-config/src/impl_.rs b/pyo3-build-config/src/impl_.rs index e188767fcd1..a7a6f1d6381 100644 --- a/pyo3-build-config/src/impl_.rs +++ b/pyo3-build-config/src/impl_.rs @@ -153,6 +153,13 @@ pub struct InterpreterConfig { } impl InterpreterConfig { + #[doc(hidden)] + pub fn emit_pyo3_cfgs(&self) { + for cfg in self.build_script_outputs() { + println!("{}", cfg); + } + } + #[doc(hidden)] pub fn build_script_outputs(&self) -> Vec { // This should have been checked during pyo3-build-config build time.