pyo3/pyo3-build-config
Alon Levy e5542f2214 pyo3-build-config: if found more than one candidate, filter on arch
If we got more then one file, only take those that contain the arch name.
For ubuntu 20.04 with host architecture x86_64 and a foreign architecture of armhf
this reduces the number of candidates to 1:

  $ find /usr/lib/python3.8/ -name '_sysconfigdata*.py' -not -lname '*'
  /usr/lib/python3.8/_sysconfigdata__x86_64-linux-gnu.py
  /usr/lib/python3.8/_sysconfigdata__arm-linux-gnueabihf.py

CHANGELOG.md: add entry for cross-sysconfigdata filter on arch

commit changelog:
1. initial
2. if filtered list is empty, use pre filtered.
3. clippy is_empty and cloned
2021-05-30 10:07:03 +03:00
..
src pyo3-build-config: if found more than one candidate, filter on arch 2021-05-30 10:07:03 +03:00
Cargo.toml pyo3-build-config: new crate to re-use build.rs across crates 2021-05-20 09:03:33 +01:00
LICENSE pyo3-build-config: new crate to re-use build.rs across crates 2021-05-20 09:03:33 +01:00
build.rs pyo3-build-config: new crate to re-use build.rs across crates 2021-05-20 09:03:33 +01:00