forked from scipy/scipy
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
4 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,51 +46,6 @@ cirrus_wheels_linux_aarch64_task: | |
<<: *BUILD_AND_STORE_WHEELS | ||
|
||
|
||
###################################################################### | ||
# Build macosx_arm64 natively | ||
###################################################################### | ||
|
||
cirrus_wheels_macos_arm64_task: | ||
macos_instance: | ||
image: ghcr.io/cirruslabs/macos-monterey-xcode:14 | ||
matrix: | ||
- env: | ||
# building all four wheels in a single task takes ~45 mins | ||
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* | ||
env: | ||
PATH: /opt/homebrew/opt/[email protected]/bin:$PATH | ||
CIBW_PRERELEASE_PYTHONS: True | ||
CIBW_ENVIRONMENT: > | ||
MACOSX_DEPLOYMENT_TARGET=12.0 | ||
_PYTHON_HOST_PLATFORM="macosx-12.0-arm64" | ||
PIP_PRE=1 | ||
PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple | ||
PIP_NO_BUILD_ISOLATION=false | ||
# TODO remove the following line once there are numpy2.0 wheels available on PyPI. | ||
# Also remove PIP_NO_BUILD_ISOLATION, PIP_EXTRA_INDEX_URL flags. | ||
CIBW_BEFORE_BUILD_MACOS: "pip install numpy>=2.0.0.dev0 meson-python cython pythran pybind11 ninja;bash {project}/tools/wheels/cibw_before_build_macos.sh {project}" | ||
PKG_CONFIG_PATH: /opt/arm64-builds/lib/pkgconfig | ||
# assumes that the cmake config is in /usr/local/lib/cmake | ||
CMAKE_PREFIX_PATH: /opt/arm64-builds/ | ||
REPAIR_PATH: /usr/local/gfortran/lib:/opt/arm64-builds/lib | ||
CIBW_REPAIR_WHEEL_COMMAND_MACOS: > | ||
DYLD_LIBRARY_PATH=/usr/local/gfortran/lib:/opt/arm64-builds/lib delocate-listdeps {wheel} && | ||
DYLD_LIBRARY_PATH=/usr/local/gfortran/lib:/opt/arm64-builds/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel} | ||
install_pre_requirements_script: | ||
- brew install [email protected] | ||
- ln -s python3 /opt/homebrew/opt/[email protected]/bin/python | ||
|
||
build_script: | ||
- which python | ||
# needed for submodules | ||
- git submodule update --init | ||
- uname -m | ||
- python -c "import platform;print(platform.python_version());print(platform.system());print(platform.machine())" | ||
- clang --version | ||
<<: *BUILD_AND_STORE_WHEELS | ||
|
||
|
||
###################################################################### | ||
# Upload all wheels | ||
###################################################################### | ||
|
@@ -102,7 +57,6 @@ cirrus_wheels_upload_task: | |
# which bash, etc, may not be present. | ||
depends_on: | ||
- cirrus_wheels_linux_aarch64 | ||
- cirrus_wheels_macos_arm64 | ||
compute_engine_instance: | ||
image_project: cirrus-images | ||
image: family/docker-builder | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters