Skip to content

Commit

Permalink
Merge pull request #3724 from davidhewitt/fix-build-config-issue
Browse files Browse the repository at this point in the history
re-add emit_pyo3_cfgs for pyo3 0.20.0 compatibility
  • Loading branch information
adamreichold committed Jan 3, 2024
2 parents f789385 + cf21325 commit f9f0bdd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyo3-build-config/src/impl_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> {
// This should have been checked during pyo3-build-config build time.
Expand Down

0 comments on commit f9f0bdd

Please sign in to comment.