-
Notifications
You must be signed in to change notification settings - Fork 24
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
Unpin numpy<2 in build requirements #121
Conversation
@astrofrog, @saimn - see also #119 - is there any actual harm in just removing the numpy constraint altogether? As is, it seems to cause pain without a clear benefit. |
|
Me neither... And tox does not really tell us in the log. @astrofrog said he has a cunning plan though. 🤞 |
Those constraints are (very) reasonable for building the wheels, but that does not mean they should be used in So, it seems to me it is (right now), completely safe to remove the requirement as long as we can ensure that the |
See astropy/astropy#15506 for a possible way of testing the build with dev version of dependencies |
because I want to install a version from my fork without tags and try with liberfa/pyerfa#121
astropy no longer needs this after astropy/astropy#15524 |
- Define `Py_LIMITED_API` and `NPY_TARGET_VERSION` macros in setup.py rather than in the C source code. - Don't define Numpy's `struct _typeobject` if we are building for PyPy because PyPy doesn't implement Python's limited C API (see liberfa/pyerfa#120). - Define `struct _typeobject` workaround after including Python.h, not before, because on PyPy, Python.h defines the macros that we depend on to detect whether we are building under PyPy. - Use `NPY_TARGET_VERSION` for builds that are backwards-compatible with old versions of Numpy. - Build with any version of Numpy >=1.25 and <2 (see liberfa/pyerfa#121).
I need this to test astropy/astropy#15495