Skip to content

Android improvements needed for building NumPy and related packages#2695

Draft
mhsmith wants to merge 28 commits intopypa:mainfrom
mhsmith:android-numpy
Draft

Android improvements needed for building NumPy and related packages#2695
mhsmith wants to merge 28 commits intopypa:mainfrom
mhsmith:android-numpy

Conversation

@mhsmith
Copy link
Copy Markdown
Member

@mhsmith mhsmith commented Dec 16, 2025

Fixes for several issues found while building NumPy and related packages for Android:

  • Replace the limited built-in repair-wheel-command with full auditwheel support.

  • Add a shim which installs a Fortran compiler on demand, using a similar approach as we did for Rust.

  • Set up pkgconf in the build environment, and enable PKG_CONFIG_RELOCATE_PATHS. This is necessary for Meson, which uses pkgconf to find Python.

  • When a package builds against NumPy, replace platform-specific files with their Android equivalents, using a similar approach to pyodide-build.

This PR branch is temporarily used by several other PRs: see the cross-references below.

@mhsmith mhsmith changed the title Android improvements needed for building NumPy and SciPy Android improvements needed for building NumPy and related packages Dec 20, 2025
@henryiii
Copy link
Copy Markdown
Contributor

henryiii commented Feb 6, 2026

Is there anything you'd like to pull out and get in for the next version?

@mhsmith
Copy link
Copy Markdown
Member Author

mhsmith commented Feb 6, 2026

Not at the moment, thanks.

@mhsmith
Copy link
Copy Markdown
Member Author

mhsmith commented Apr 17, 2026

@mayeut: Since you're familiar with pypa/auditwheel#643, it might make sense for you to review this PR as well. It won't be ready to merge until the auditwheel work has been released, but it's otherwise complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants