-
Notifications
You must be signed in to change notification settings - Fork 64
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
use rapids-build-backend #736
use rapids-build-backend #736
Conversation
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.
Thanks, the Python code changes look good to me
- &cupy_cu11 cupy-cuda11x>=12.0.0 | ||
- matrix: | ||
packages: | ||
- *cupy_cu11 |
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.
unfamiliar with the notation, curious what the &
and *
in the package names do here?
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.
These are YAML anchors. We defined an anchor with & and reused its value with *.
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 sure, happy to explain! This is a YAML "alias", pointing to a YAML "anchor". When this document is loaded, *cupy_cu11
will be replaced with whatever value is tagged with &cupy_cu11
. It's a way to reduce a bit of duplication, to keep things that should be consistent consistent.
For example, this:
limits:
cpu: 1.0
requests:
cpu: 1.0
Is identical to this:
limits:
cpu: &cpu_val 1.0
requests:
cpu: *cpu_val
For reference, see:
/merge |
Contributes to rapidsai/build-planning#31
Contributes to rapidsai/dependency-file-generator#89
Proposes introducing
rapids-build-backend
as this project's build backend, to reduce the complexity of various CI/build scripts.