Skip to content

BLD: Add support for building iOS wheels #28759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

freakboy3742
Copy link
Contributor

Adds iOS as a test and release target for NumPy.

This is currently a "proof of life" PR, showing work in progress (hence the draft status of the PR).

To build, it requires:

With those pre-conditions, a build will complete using:

NINJA=ninja CIBW_PLATFORM=ios CIBW_ENVIRONMENT="INSTALL_OPENBLAS=false RUNNER_OS=iOS IPHONEOS_DEPLOYMENT_TARGET=17.0" CIBW_TEST_SKIP="*" cibuildwheel 

The build will also work without the IPHONEOS_DEPLOYMENT_TARGET, but with an unaccelerated version of blas (this is the analog of the MACOSX_DEPLOYMENT_TARGET=14.0 configuration, except that there isn't a pre-compiled openBLAS for iOS to fall back on).

The test suite is also being skipped at present; this is because the test suite makes extensive use of subprocess, which isn't available on iOS. I'm still working on getting some version of the test suite to complete; but the wheels pass some simple manual tests (as exercised by the Python-support-testbed project, which BeeWare uses to do basic validation of release assets).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
36 - Build Build related PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant