-
Notifications
You must be signed in to change notification settings - Fork 56
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
numpy>2.0 compatibility / don't require oldest-supported-numpy
#262
Comments
That seems like a simple fix, thanks for reporting. After reading the references you pointed to, it seems the numpy required for building cyipopt should be |
Actually, maybe it should just be |
Or maybe the minimum build time version should be 1.25:
from https://numpy.org/devdocs/dev/depending_on_numpy.html#adding-a-dependency-on-numpy |
There is a new PyPi sdist release that should address this issue. Let me know if it doesn't. |
Thanks for the quick response. Works as expected. |
Hi, cyipopt currently requires
oldestsupported-numpy
during package installation. This was great until numpy 2.0 was released. Meanwhile, this prevents using cyipopt with numpy>=2.0. More details are provided in the deprecation notice ofoldest-supported-numpy
.To reproduce:
Create and activate a new virtual environment
python -m venv delete_me && source delete_me/bin/activate
Install cyipopt
pip install -vvv "cyipopt>=1.4.1" --no-cache
I.e. in the isolated build environment, where the cyipopt C-extension is build, numpy==1.26.2 is used, but in the user's environment, numpy-2.1.1 will be used (incompatible with the extension built against numpy<2.0).
Try to import
python -c "import cyipopt"
This is most likely what caused #260.
In the simplest case, this could be fixed by just replacing
oldest-supported-numpy
bynumpy
inpyproject.toml
.It would be great to see a numpy>2.0-compatible cyipopt version on PyPI.
The text was updated successfully, but these errors were encountered: