Commit Graph

3 Commits

Author SHA1 Message Date
Yulia Baturina
b7ae3e4fcd Add released cpython 3.14 version in rules_python patch.
PiperOrigin-RevId: 816381097
2025-10-07 14:45:29 -07:00
A. Unique TensorFlower
db851a6e99 Fix freethreaded aarch64 builds in JAX.
The urls for all python versions can use `pgo+lto-full`.

PiperOrigin-RevId: 810595592
2025-09-23 15:28:20 -07:00
A. Unique TensorFlower
62b4c5b763 Add rules_python_versions.patch to fix usage of custom python versions.
A custom runtime can be specified by setting the `HERMETIC_PYTHON_URL`, which
may point to a mostly arbitrary URL, i.e. one not following the same format
as python-build-standalone URLs, such e.g. `file:///__w/jax/jax/python-tsan.tgz`.
Internally, some rules_python code assumes the python-build-standalone URL
format and eventually errors.

To fix, the python version is used to determine the URL build suffix.

This also patches the rule_python versions URL generation logic to add musl
to the list of platforms it generates freethreaded runtime urls for.

Work around for https://github.com/bazel-contrib/rules_python/issues/3285, https://github.com/bazel-contrib/rules_python/issues/3286

PiperOrigin-RevId: 810132685
2025-09-22 13:32:10 -07:00