Repository navigation
rules_pycross 2.0.1 is a patch release with fixes on top of 2.0.0; no configuration changes are needed. See the CHANGELOG for details.
Highlights
uvconflict groups: conflict-gated dependency edges are no longer dropped, local versions (e.g.2.12.0vs2.12.0+cpu) pin exactly, and a missing variant flag fails with a message naming the_variantsflags (deferred to execution underunavailable_package_mode=fail_at_execution).venvs_site_packages=yes: namespace directories link every file, and cross-wheel$ORIGINRPATHs (e.g.nvidia-*) resolve inside the venv.- Poetry
||version constraints now evaluate every branch. - Cross-compilation: target-environment settings no longer leak into exec-side tools, and build dependencies of cross-compiled packages are no longer built twice for the host.
Behavior changes to be aware of
- Build dependencies of cross-compiled packages now inherit the target's
--compilation_mode,--stripand--action_env; only C/C++ flags (--copt,--linkopt,--features, …) are reset to their--host_*values. - Internal tools updated, including repairwheel 0.8.0.
Using Bzlmod:
Add to your MODULE.bazel file:
bazel_dep(name = "rules_pycross", version = "2.0.1")Maturin backend (optional):
bazel_dep(name = "rules_pycross_backend_maturin", version = "2.0.1")SHA-256: a5f02b5998c8b2755e48c9cf38cc8356bb4343eb8b4add093505191181291c6d
What's Changed
- fix(poetry): evaluate all branches of || version constraints by @jvolkman in #362
- fix: scope target-environment settings to target and reset in exec transition by @jvolkman in #363
- fix(venv): link every file in namespace dirs and split shared-library dirs below namespaces by @jvolkman in #364
- fix(uv): support conflict extra markers, per-edge fork markers, and exact local-version pins by @jvolkman in #365
- refactor: deduplicate helpers and remove dead code across lock pipeline and backends by @jvolkman in #366
- test(e2e): deflake git_sources fresh-output-base fetches on Bazel 9 by @jvolkman in #367
- refactor: flatten deeply nested logic with early returns and guard clauses by @jvolkman in #368
- fix: prevent pycross_exec_platform_transition from splitting host config by @jvolkman in #369
- chore: bump repairwheel to 0.8.0 and update internal Python deps by @jvolkman in #370
- fix: filter non-module site_paths and collapse split packages in modules_mapping by @jvolkman in #371
- fix(inspect): ignore non-package top-level dirs in sdist site_paths by @jvolkman in #372
- fix(uv): fail clearly when no conflict variant is selected by @jvolkman in #373
- docs: prepare CHANGELOG for 2.0.1 by @jvolkman in #374
Full Changelog: v2.0.0...v2.0.1