Skip to content

Commit

Permalink
re-add emit_pyo3_cfgs for pyo3 0.20.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Jan 2, 2024
1 parent f789385 commit cf21325
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 cf21325

Please sign in to comment.