From 205b3dde0f8b5aa71e9e84f0c816372746715b5a Mon Sep 17 00:00:00 2001 From: messense Date: Wed, 4 May 2022 21:46:58 +0800 Subject: [PATCH] Add macOS python interpreter sysconfig --- .github/workflows/test.yml | 3 + src/python_interpreter/config.rs | 5 +- src/python_interpreter/sysconfig-macos.json | 123 ++++++++++++++++++++ 3 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 src/python_interpreter/sysconfig-macos.json diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8446cc6d1..45198d8a3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -115,6 +115,9 @@ jobs: # non-abi3 cargo run -- build --no-sdist -i python3.9 -m test-crates/pyo3-mixed/Cargo.toml --target aarch64-unknown-linux-gnu --zig + cargo run -- build --no-sdist -i python3.9 -m test-crates/pyo3-mixed/Cargo.toml --target aarch64-apple-darwin --zig + # Check wheels with twine + twine check --strict test-crates/pyo3-mixed/target/wheels/*.whl - name: test cross compiling windows abi3 wheel if: matrix.os == 'ubuntu-latest' run: | diff --git a/src/python_interpreter/config.rs b/src/python_interpreter/config.rs index 557b50173..f18e56165 100644 --- a/src/python_interpreter/config.rs +++ b/src/python_interpreter/config.rs @@ -9,8 +9,11 @@ static WELLKNOWN_SYSCONFIG: Lazy