Skip to content

Added NumPy 2.x testing and prepared for pyOptSparse v2.14.0#78

Merged
swryan merged 19 commits into
OpenMDAO:masterfrom
swryan:np2
May 1, 2025
Merged

Added NumPy 2.x testing and prepared for pyOptSparse v2.14.0#78
swryan merged 19 commits into
OpenMDAO:masterfrom
swryan:np2

Conversation

@swryan
Copy link
Copy Markdown
Contributor

@swryan swryan commented Apr 25, 2025

Summary

Added NumPy 2.x testing and prepared for pyOptSparse v2.14.0

  • the default version of pyOptSparse will now be v2.13.1 if running under NumPy 2.x
  • jobs that test with NumPy 2.x were added to the test workflow
  • cyipopt will now be installed along with IPOPT if pyOptSparse is v2.14.0 or newer. this is in response to Issue cyipopt required for pyOptSparse v2.14+ #77, but that issue can't be closed until v2.14.0 is released. (the functionality has been tested by making a mock version v2.14.0 on a fork)

Note that the MacOS NumPy 2.x build fails to pass all the tests, but this doesn't seem to be an issue with this build script as far as I can tell. It looks like an f2py compatibility issue with slsqp:

capi_return is NULL
Call-back cb_slfunc_in_slsqp__user__routines failed.
Fatal Python error: F2PySwapThreadLocalCallbackPtr: F2PySwapThreadLocalCallbackPtr: PyLong_AsVoidPtr failed
Python runtime state: initialized

Related Issues

  • Resolves #

Backwards incompatibilities

None

New Dependencies

None

@swryan swryan merged commit cd73019 into OpenMDAO:master May 1, 2025
10 of 11 checks passed
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.

1 participant