Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-add emit_pyo3_cfgs for pyo3 0.20.0 compatibility #3724

Merged
merged 1 commit into from Jan 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions pyo3-build-config/src/impl_.rs
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