Skip to content

Commit f9f0bdd

Browse files
authoredJan 3, 2024
Merge pull request #3724 from davidhewitt/fix-build-config-issue
re-add emit_pyo3_cfgs for pyo3 0.20.0 compatibility
2 parents f789385 + cf21325 commit f9f0bdd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎pyo3-build-config/src/impl_.rs

+7
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ pub struct InterpreterConfig {
153153
}
154154

155155
impl InterpreterConfig {
156+
#[doc(hidden)]
157+
pub fn emit_pyo3_cfgs(&self) {
158+
for cfg in self.build_script_outputs() {
159+
println!("{}", cfg);
160+
}
161+
}
162+
156163
#[doc(hidden)]
157164
pub fn build_script_outputs(&self) -> Vec<String> {
158165
// This should have been checked during pyo3-build-config build time.

0 commit comments

Comments
 (0)
Please sign in to comment.