Skip to content

Commit

Permalink
Fix macOS arm64 wheel config
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Mar 31, 2022
1 parent b6f726b commit e4eee94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ stages:
pool: {vmImage: 'macOS-10.15'}
variables:
python.version: '3.7'
CIBW_ARCHS_MACOS: universal2
CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin
CIBW_ARCHS_MACOS: arm64 universal2
CIBW_ENVIRONMENT: CARGO_BUILD_TARGET="aarch64-apple-darwin" PYO3_CROSS_LIB_DIR="/Library/Frameworks/Python.framework/Versions/$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')/lib/python$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')"
TWINE_USERNAME: qiskit
steps:
- task: UsePythonVersion@0
Expand Down

0 comments on commit e4eee94

Please sign in to comment.