Skip to content

Commit 0fe4011

Browse files
committed
Set macos-deployment-target
1 parent 5d3ec9a commit 0fe4011

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ jobs:
8989
run:
9090
working-directory: light-curve
9191

92-
env:
93-
# maturin sets it to 10.7, which is too low for Ceres
94-
MACOSX_DEPLOYMENT_TARGET: '10.9'
95-
9692
steps:
9793
- uses: actions/checkout@v3
9894
- name: Install ceres on macOS

light-curve/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ We build aarch64 macOS 12.0+ Python 3.8+ wheels locally and submit them running
3535
rm -rf ./wheelhouse
3636
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
3737
brew install gsl
38-
CIBW_BUILD='cp3*-macosx_arm64' CIBW_ENVIRONMENT="MACOSX_DEPLOYMENT_TARGET=12.0 MATURIN_PEP517_ARGS='--locked --no-default-features --features ceres-source,fftw-source,gsl'" CIBW_BEFORE_ALL='' python3 -mcibuildwheel --platform macos
39-
CIBW_BUILD='cp310-macosx_arm64' CIBW_ENVIRONMENT="MACOSX_DEPLOYMENT_TARGET=12.0 MATURIN_PEP517_ARGS='--locked --no-default-features --features ceres-source,fftw-source,gsl,abi3'" CIBW_BEFORE_ALL='' python3 -mcibuildwheel --platform macos
38+
CIBW_BUILD='cp3*-macosx_arm64' CIBW_ENVIRONMENT="MATURIN_PEP517_ARGS='--locked --no-default-features --features ceres-source,fftw-source,gsl'" CIBW_BEFORE_ALL='' python3 -mcibuildwheel --platform macos
39+
CIBW_BUILD='cp310-macosx_arm64' CIBW_ENVIRONMENT="MATURIN_PEP517_ARGS='--locked --no-default-features --features ceres-source,fftw-source,gsl,abi3'" CIBW_BEFORE_ALL='' python3 -mcibuildwheel --platform macos
4040
twine upload wheelhouse/*.whl
4141
```
4242

light-curve/pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ dynamic = [
5555
# It asks to use Cargo.lock to make the build reproducible
5656
locked = true
5757

58+
[tool.maturin.target.aarch64-apple-darwin]
59+
# I belive Rust requires it
60+
macos-deployment-target = "11.0"
61+
62+
[tool.maturin.target.x86_64-apple-darwin]
63+
# Default is 10.7, but we need 10.9 for Ceres
64+
macos-deployment-target = "10.9"
65+
5866
[tool.black]
5967
line-length = 120
6068
target-version = ["py37"]

0 commit comments

Comments
 (0)