Skip to content

build(cuda_bindings): declare cuda-pathfinder as a host-dependency#1926

Open
cpcloud wants to merge 2 commits intoNVIDIA:mainfrom
cpcloud:fix/cuda-bindings-host-deps
Open

build(cuda_bindings): declare cuda-pathfinder as a host-dependency#1926
cpcloud wants to merge 2 commits intoNVIDIA:mainfrom
cpcloud:fix/cuda-bindings-host-deps

Conversation

@cpcloud
Copy link
Copy Markdown
Contributor

@cpcloud cpcloud commented Apr 16, 2026

Problem

Building cuda_bindings from source through the pixi path-dependency workflow fails because cuda_pathfinder is not available at build time.

pixi-build-python invokes pip install --no-build-isolation against the pixi host environment. --no-build-isolation bypasses [build-system] requires from pyproject.toml, so anything listed only there (including cuda-pathfinder) is not provisioned before the build runs. The build then fails as soon as the setup step tries to import or resolve cuda_pathfinder.

Fix

Add cuda-pathfinder = { path = "../cuda_pathfinder" } to [package.host-dependencies] in cuda_bindings/pixi.toml. With the dependency declared in the pixi manifest, pixi installs it into the host env before the no-isolation build runs, and the build succeeds.

pixi-build-python runs `pip install --no-build-isolation` against the pixi
host environment, which bypasses `[build-system] requires` in
`pyproject.toml`. As a result, building `cuda_bindings` from source via the
pixi path-dependency workflow failed because `cuda_pathfinder` was not
present at build time — it was only declared in `pyproject.toml`.

Declare `cuda-pathfinder` as a path host-dependency in `cuda_bindings/pixi.toml`
so pixi installs it into the host env before the no-isolation build runs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cpcloud cpcloud added this to the cuda.bindings next milestone Apr 16, 2026
@cpcloud cpcloud added bug Something isn't working cuda.bindings Everything related to the cuda.bindings module dependencies Pull requests that update a dependency file labels Apr 16, 2026
@cpcloud cpcloud self-assigned this Apr 16, 2026
@github-actions github-actions bot added the Needs-Restricted-Paths-Review PR touches cuda_bindings or cuda_python; only NVIDIA employees may modify these paths; see LICENSEs label Apr 16, 2026
@github-actions
Copy link
Copy Markdown

Re-solve bumps cuda-nvrtc (13.2.51 → 13.2.78) and libcufile
(1.17.0.44 → 1.17.1.22) across linux-64, linux-aarch64, and win-64
environments.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cuda.bindings Everything related to the cuda.bindings module dependencies Pull requests that update a dependency file Needs-Restricted-Paths-Review PR touches cuda_bindings or cuda_python; only NVIDIA employees may modify these paths; see LICENSEs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant