Skip to content

Conversation

@mmccarty
Copy link
Contributor

@mmccarty mmccarty commented Jan 8, 2026

Contributes to rapidsai/build-planning#242

In rapids-init-pip (code link):

  • Sets PIP_USE_FEATURE="build-constraint"

@mmccarty mmccarty requested a review from a team as a code owner January 8, 2026 19:43
@mmccarty mmccarty requested review from bdice and removed request for a team January 8, 2026 19:43
@mmccarty mmccarty requested a review from jameslamb January 8, 2026 19:44
Copy link
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is exactly what I was expected and should be enough.

Before we merge this, could you try testing it in some project's wheel CI? ucxx is probably a good candidate, I see this warning in the distributed-ucxx wheel building jobs (build link)

Since this doesn't call any other gha-tools, I'd probably just stick the content of this file in a file like ci/rapids-init-pip and then change all the rapids init pip calls in ucxx CI scripts to source ci/rapids-init-pip.

We'd want to see builds and tests run successfully without this warning.

And I'd test that the constraint's being respected by adding a couple garbage characters in the middle of the filepath of lines like https://github.com/rapidsai/ucxx/blob/19c4b58ba42eff314083a9a11c79ece9f36fbd51/ci/build_wheel_ucxx.sh#L20 to see if pip complains.

Approving so you can merge whenever this has been tested and you're feeling confident in it.

Copy link
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions based on the testing.

Co-authored-by: James Lamb <jaylamb20@gmail.com>
@mmccarty mmccarty changed the title Setting PIP_BUILD_CONSTRAINT to the same file as PIP_CONSTRAINT in rapids-init-pip Sets PIP_USE_FEATURE="build-constraint" in rapids-init-pip Jan 14, 2026
@mmccarty
Copy link
Contributor Author

@jameslamb - Done

Copy link
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, let's do it!

Once we merge this and it's built into new CI images, I'm not expecting it to break anything, based on our testing in rapidsai/ucxx#567

And I think doing it in this script is preferable to adding this in the global pip.conf in CI images (https://github.com/rapidsai/ci-imgs/blob/main/context/pip.conf) for the benefit of reproducing CI locally outside of those images.

@mmccarty mmccarty merged commit ceb80cf into rapidsai:main Jan 14, 2026
2 checks passed
mmccarty added a commit to mmccarty/gha-tools that referenced this pull request Jan 14, 2026
rapids-bot bot pushed a commit to rapidsai/rmm that referenced this pull request Jan 15, 2026
…#2212)

Contributes to rapidsai/build-planning#242

Modifying `ci/build_wheel_python.sh` to avoid passing `--build-constraint` and `--no-build-isolation` together which results in an error from `pip`, however we want to keep environment variable `PIP_CONSTRAINT` set unconditionally.

Can be merged after rapidsai/gha-tools#237

Authors:
  - Mike McCarty (https://github.com/mmccarty)

Approvers:
  - James Lamb (https://github.com/jameslamb)

URL: #2212
jameslamb pushed a commit to jameslamb/rmm that referenced this pull request Jan 15, 2026
…rapidsai#2212)

Contributes to rapidsai/build-planning#242

Modifying `ci/build_wheel_python.sh` to avoid passing `--build-constraint` and `--no-build-isolation` together which results in an error from `pip`, however we want to keep environment variable `PIP_CONSTRAINT` set unconditionally.

Can be merged after rapidsai/gha-tools#237

Authors:
  - Mike McCarty (https://github.com/mmccarty)

Approvers:
  - James Lamb (https://github.com/jameslamb)

URL: rapidsai#2212
rapids-bot bot pushed a commit to rapidsai/cudf that referenced this pull request Jan 16, 2026
…#21048)

Contributes to rapidsai/build-planning#242

Modifying `ci/build_wheel.sh` to avoid passing `--build-constraint` and `--no-build-isolation` together which results in an error from `pip`, however we want to keep environment variable `PIP_CONSTRAINT` set unconditionally.

Can be merged after rapidsai/gha-tools#237

Authors:
  - Mike McCarty (https://github.com/mmccarty)

Approvers:
  - James Lamb (https://github.com/jameslamb)

URL: #21048
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.

2 participants