Repository navigation
rules_pycross 2.2.0 adds per-repo @<repo>//_variants string flags, caching and configuration-deduplication improvements, and sdist build fixes on top of 2.1.0; no configuration changes are needed. See the CHANGELOG for details.
Highlights
- Per-repo
@<repo>//_variantsstring flag: repos withuvconflict variants now expose astring_flagaccepting comma-separated variant names (e.g.extra_cu124,group_test), enabling per-targetconfig_settingstransitions withrules_python. - Automatic single-variant selection and isolation:
uvrepos that request a single item of a conflict set now select it automatically (matchinguv sync --extra ...), and_variantsflags no longer leak into transitioned repos. - Better caching across configurations and output bases: variant-independent packages are installed once across repo configurations, wheel install and extraction actions opt into Bazel path mapping (
supports-path-mapping), andpycross_sdist_repomarks itself reproducible for Bazel's repo contents cache. - Sdist build & venv fixes: preserves toolchain
ARFLAGS(fixingsetuptoolsbuild_clibbuilds), fixes Mesonlongdouble_formaton macOS x86_64, defaultsSOURCE_DATE_EPOCH=315532800andPYTHONHASHSEED=0, collects Windows.libstatic and import libraries innative_deps, and fixes packages missing from the venv undervenvs_site_packages=yeswhen reached through two configurations.
Using Bzlmod:
Add to your MODULE.bazel file:
bazel_dep(name = "rules_pycross", version = "2.2.0")Maturin backend (optional):
bazel_dep(name = "rules_pycross_backend_maturin", version = "2.2.0")SHA-256: c6306dd77b74c3b007fbc3bb7a2c34054212e0cf2920df456616dfea94c9d2da
What's Changed
- feat: include Windows .lib files in CC layer extraction by @dimatcimbal in #389
- feat(uv): select a repo's only requested conflict item by @jvolkman in #390
- fix: keep packages in the venv when reached through two configurations by @jvolkman in #392
- fix(uv): stop _variants flags leaking into transitioned repos by @jvolkman in #393
- Mark sdist repos as reproducible by @alexander-scott in #394
- perf(uv): install variant-independent packages once across configurations by @jvolkman in #395
- fix(sdist): watch pre_build_patches and unpinned sdists for repo cache by @jvolkman in #398
- perf: enable path mapping for wheel install and extract actions by @jvolkman in #399
- feat(uv): add per-repo @//_variants string_flag by @jvolkman in #400
- fix(build): preserve ARFLAGS, fix darwin x86_64 longdouble_format, and set reproducibility defaults by @jvolkman in #402
- docs: prepare CHANGELOG for 2.2.0 by @jvolkman in #403
Full Changelog: v2.1.0...v2.2.0