Repository navigation
fix: track Cython inputs for editable pixi-build-python builds - #6123
Conversation
| }; | ||
| // Cython inputs affect compiled extension artifacts even when the | ||
| // Python package itself is installed editable. | ||
| let cython_globs = Vec::from(["**/*.{pyx,pxd,pxi}"]); |
There was a problem hiding this comment.
Also happy to just add these into the existing python_globs if you feel it's more appropriate
baszalmstra
left a comment
There was a problem hiding this comment.
Would it be possible to add these only if cython is a dependency? Tracking globs has an overhead, seems wasteful to always add these if they will not match anyway.
269a68f to
2397f6b
Compare
|
Addressed the review comment: Cython input globs are now added only when Cython is present in the model dependencies or in I also added tests for explicit model dependency, pyproject build-system dependency, and the no-Cython case. Generated by Codex. |
We were previously always tracking |
2397f6b to
38fed41
Compare
Pixi <0.71.0 re-ran the editable source build on every `pixi run`, recompiling all ~29 Cython extensions in cuda_bindings (~27s) even when nothing changed, because setuptools' editable_wheel uses fresh temp build dirs so build_ext always sees the .so as older than its source. Pixi 0.71.0 fixed this upstream with a content-addressed source-build cache (prefix-dev/pixi#6285) plus separate Cython input tracking (prefix-dev/pixi#6123). Locally verified: under 0.66 the 2nd no-op run rebuilds 29 extensions with a fresh /tmp/*.build-temp; under 0.73 it rebuilds nothing and returns instantly. The fix also bumps the pixi.lock format from v6 to v7 (unreadable by pixi 0.66), so this requires all contributors to move to pixi >=0.71. Regenerated all six committed lock files to v7 accordingly. Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
…VIDIA#2396) Pixi <0.71.0 re-ran the editable source build on every `pixi run`, recompiling all ~29 Cython extensions in cuda_bindings (~27s) even when nothing changed, because setuptools' editable_wheel uses fresh temp build dirs so build_ext always sees the .so as older than its source. Pixi 0.71.0 fixed this upstream with a content-addressed source-build cache (prefix-dev/pixi#6285) plus separate Cython input tracking (prefix-dev/pixi#6123). Locally verified: under 0.66 the 2nd no-op run rebuilds 29 extensions with a fresh /tmp/*.build-temp; under 0.73 it rebuilds nothing and returns instantly. The fix also bumps the pixi.lock format from v6 to v7 (unreadable by pixi 0.66), so this requires all contributors to move to pixi >=0.71. Regenerated all six committed lock files to v7 accordingly. Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Track Cython inputs for editable pixi-build-python builds
Generated by Codex.
Summary
pixi-build-pythoninput globs.pyx,.pxd,.pxi) only when Cython is declared in the model dependencies orbuild-system.requiresFixes #6122.
Tests
Manual reproducer check:
pixi-build-pythonbackend locallyPIXI_BUILD_BACKEND_OVERRIDErepro.pyxv3tov4pixi run show-docrebuilt and printedv4pixi run show-docprintedv4without rebuild output