-
Notifications
You must be signed in to change notification settings - Fork 902
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
Drop {{ pin_compatible('numpy', max_pin='x') }}
#16301
Drop {{ pin_compatible('numpy', max_pin='x') }}
#16301
Conversation
58cf117
to
774f66b
Compare
This is no longer needed as `numpy`'s own `run_exports` sets this for us. In `requirements/run` set the `numpy` lower bound to `1.23` so that we have a higher bound than the `run_exports` would otherwise use.
774f66b
to
74781b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me, I double-checked and right now numpy
's run export is >=1.19,<3
.
# TODO: Change to `2.0` for NumPy 2 | ||
- numpy 1.23 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once we update to NumPy 2, that will be true
Right now we build with NumPy 1.23, which means run_exports
adds {{ pin_subpackage("numpy") }}
. The defaults of pin_subpackage
are to tightly pin on the lower bound and pin the upper bound based on major version. So this turns into numpy >=1.23.5,<2.0a0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh got it, right. Ok sounds good to me.
# TODO: Update `numpy` in `host` when dropping `<2.0a0` | ||
- numpy >=1.23,<2.0a0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this seems duplicative to what numpy
's run_exports
does, this same pinning is used throughout RAPIDS. Also it gives a foothold for RDFG changes to be made to move to NumPy 2. When that does happen, we have a comment above to remind us to make other needed changes in this recipe
/merge |
Thanks James! 🙏 |
Description
Part of issue: rapidsai/build-planning#82
Drop
{{ pin_compatible('numpy', max_pin='x') }}
as it is no longer needed.numpy
has its ownrun_exports
, which constraintsnumpy
to an API compatible version. More details in issue: https://github.com/orgs/rapidsai/projects/132So
cudf
now uses that in its recipe builds. Also updaterequirements/run
to set thenumpy
lower bound to1.23
as required by us.Lastly add todo comments for NumPy 2 update lines.
Checklist