Skip to content

Commit

Permalink
Look for pyo3 crate first for generate-abi3-import-lib feature
Browse files Browse the repository at this point in the history
pyo3-ffi doesn't have `generate-abi3-import-lib` feature yet.
  • Loading branch information
messense committed Apr 17, 2022
1 parent 7d1b63b commit b9655d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ fn is_generating_abi3_import_lib(cargo_metadata: &Metadata) -> Result<bool> {
.resolve
.as_ref()
.context("Expected cargo to return metadata with resolve")?;
for &lib in PYO3_BINDING_CRATES.iter() {
for &lib in PYO3_BINDING_CRATES.iter().rev() {
let pyo3_packages = resolve
.nodes
.iter()
Expand Down

0 comments on commit b9655d1

Please sign in to comment.