Skip to content

Use openblas in numpy recipe on 6x - #7353

Merged
ianthomas23 merged 4 commits into
emscripten-forge:emscripten-6xfrom
ianthomas23:em6x-numpy
Oct 12, 2026
Merged

ianthomas23 merged 4 commits into
emscripten-forge:emscripten-6xfrom
ianthomas23:em6x-numpy

Conversation

@ianthomas23

@ianthomas23 ianthomas23 commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Template B: Checklist for updating a package

  • ⚠️ Bump build number if the version remains unchanged
  • Or reset build number to 0 if updating the package to a newer version

PR Formatting

  • PR title follows format: Add [package-name] or Update [package-name] to [version]
  • PR description includes:
    • Version being added/updated
    • Any special build considerations or patches applied

Package Details

  • Package Name: NumPy
  • Version: 2.5.3 2.5.4

Build Notes

Rebuild of numpy on emscripten-6x to use openblas and to add separate numpy-tests package to run (almost) full test suite. This brings it into line with the existing recipe on main which includes significant PRs #6310 and #6676 thanks to @jjerphan.

Summary of changes compared to main:

  1. Using repository's MESON_CROSS_FILE.
  2. Patches rewritten to use correct-sized integers on both wasm32 and wasm64.
  3. Some more tests are disabled on wasm64 for allocation of very large arrays.
  4. New patch 0004 to correct integer size substituted in error message. This may be a real NumPy error, I will need to investigate further.
  5. NumPy tests run with -p no:faulthandler, the same as openblas/scipy tests.

This builds and passes tests for me locally on wasm32 and wasm64.

Assuming this passes CI, there are two options for how to proceed:

  1. Merge as is, so all use of numpy on emscripten-6x will use openblas.
  2. Wait until the next numpy release (2.5.4) before updating and merging this. Then numpy >= 2.5.4 on emscripten-6x will use openblas but we will still have numpy 2.5.3 that does not use openblas in case we need this option in the future.

@ianthomas23 ianthomas23 added the 6x Emscripten-6x label Oct 8, 2026
@ianthomas23
ianthomas23 merged commit a10e9ed into emscripten-forge:emscripten-6x Oct 12, 2026
4 checks passed
@ianthomas23
ianthomas23 deleted the em6x-numpy branch October 12, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6x Emscripten-6x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant