Skip to content

Commit

Permalink
Set ARCHFLAGS and _PYTHON_HOST_PLATFORM for macOS builds
Browse files Browse the repository at this point in the history
Avoid marking wheels universal2
  • Loading branch information
noirello committed Feb 1, 2024
1 parent 4bb5f41 commit 79aae2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
- name: Create wheel
run: |
rm -rf ./build
python -m build -w
ARCHFLAGS='-arch x86_64' _PYTHON_HOST_PLATFORM=$(python -c "import sysconfig;print(f\"{'-'.join(sysconfig.get_platform().split('-')[:-1])}-x86_64\")") python -m build -w
delocate-wheel -v ./dist/bonsai-*.whl
if: ${{ env.python_final_release == 'true' }}
- name: Upload wheel
Expand Down Expand Up @@ -193,8 +193,8 @@ jobs:
run: |
printf "[build_ext]\ninclude_dirs=/usr/include/sasl:/opt/homebrew/opt/openldap/include\nlibrary_dirs=/opt/homebrew/opt/openldap/lib" > ./setup.cfg
printf "\n\n[options]\nzip_safe = False" >> setup.cfg
python -m build -w
delocate-wheel -v ./dist/bonsai-*.whl
ARCHFLAGS='-arch arm64' _PYTHON_HOST_PLATFORM=$(python -c "import sysconfig;print(f\"{'-'.join(sysconfig.get_platform().split('-')[:-1])}-arm64\")") python -m build -w
delocate-wheel --require-archs arm64 -v ./dist/bonsai-*.whl
- name: Upload wheel
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 79aae2b

Please sign in to comment.