Skip to content

Commit

Permalink
Fix build for python 3.8 mac arm
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed May 23, 2024
1 parent 16530bb commit 78e3971
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,13 @@ jobs:
run: echo "TEST_COMMAND=python -c \"import aerospike\"" >> $GITHUB_ENV
shell: bash

- name: Install experimental Python 3.8 arm64 build
if: ${{ matrix.platforms[0] == 'macosx_arm64' && matrix.python == 'cp38' }}
run: |
curl -o /tmp/Python38.pkg https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg
sudo installer -pkg /tmp/Python38.pkg -target /
sh "/Applications/Python 3.8/Install Certificates.command"
- name: Enable integration tests
if: ${{ env.RUN_INTEGRATION_TESTS_IN_THIS_JOB == 'true' }}
run: echo "TEST_COMMAND=cd {project}/test/ && pip install -r requirements.txt && python -m pytest new_tests/" >> $GITHUB_ENV
Expand All @@ -218,6 +225,7 @@ jobs:
env:
CIBW_ENVIRONMENT_PASS_LINUX: ${{ inputs.apply-no-optimizations && 'UNOPTIMIZED' || '' }}
CIBW_ENVIRONMENT_MACOS: SSL_LIB_PATH="$(brew --prefix [email protected])/lib/" CPATH="$(brew --prefix [email protected])/include/" STATIC_SSL=1
# We are cross compiling for arm64 on x86_64 hardware, so we need to be specific
CIBW_ARCHS_LINUX: ${{ matrix.platforms[0] == 'manylinux_aarch64' && 'aarch64' || 'auto' }}
CIBW_BUILD: ${{ env.BUILD_IDENTIFIER }}
CIBW_BUILD_FRONTEND: build
Expand Down

0 comments on commit 78e3971

Please sign in to comment.