Skip to content

Support NumPy 2.x 64bit integers on Windows - #551

Open
jfowkes wants to merge 1 commit into
masterfrom
fix-numpy-windows
Open

Support NumPy 2.x 64bit integers on Windows#551
jfowkes wants to merge 1 commit into
masterfrom
fix-numpy-windows

Conversation

@jfowkes

@jfowkes jfowkes commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

NumPy 2.x has changed the default integer type on Windows from 32bit (NPY_LONG) to 64bit (NPY_INTP):
https://numpy.org/devdocs/numpy_2_0_migration_guide.html#windows-default-integer

This PR fixes our Python interfaces to support both the old NumPy 1.x 32bit integer and the new Numpy 2.x 64bit integer.

I also suggest we do a new bugfix release of GALAHAD v5.5.2 after merging this PR so that we can update PyPI with Python 3.14 wheels (precompiled binaries) since 3.14 is the current stable release of Python and we should really be supporting it:
https://devguide.python.org/versions/

@jfowkes
jfowkes requested a review from amontoison September 11, 2026 08:18
@jfowkes jfowkes self-assigned this Sep 11, 2026
@jfowkes jfowkes added bug Something isn't working Python An issue with the Python interfaces labels Sep 11, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 27.44%. Comparing base (9bcbb71) to head (c6930bf).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #551   +/-   ##
=======================================
  Coverage   27.44%   27.44%           
=======================================
  Files         152      152           
  Lines       28151    28151           
  Branches     8419     8419           
=======================================
  Hits         7725     7725           
  Misses      17958    17958           
  Partials     2468     2468           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jfowkes

jfowkes commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator Author

@amontoison should we be worried about the failing Poison tests?

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

Labels

bug Something isn't working Python An issue with the Python interfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants