Commit Graph

11 Commits

Author SHA1 Message Date
Yulia Baturina
735467e89c Fix protobuf.patch label in tensorflow repository.
PiperOrigin-RevId: 816890159
2025-10-08 15:54:58 -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
A. Unique TensorFlower
3eae65361b Update rules_python to v1.6 in XLA and TensorFlow projects.
`com_google_protobuf` and `rules_cc` initialization was moved to `python_init_rules` macros.

The JAX repository update will be done [in the next step](https://github.com/jax-ml/jax/pull/31709)

PiperOrigin-RevId: 808689003
2025-09-18 12:30:45 -07:00
Richard Levasseur
a82378ba8e Allow passing extra patches to python_init_rules
This allows downstream projects to apply project-specific patches without
having to redefine the entire rules_python repo and the custom patches.

PiperOrigin-RevId: 792220068
2025-08-07 10:56:51 -07:00
Peter Hawkins
552c1ee1c7 Patch rules_python to support free-threading.
Forked from https://github.com/openxla/xla/pull/25183

Without this change rules_python doesn't correctly install free-threaded wheels for a free-threaded Python build.

PiperOrigin-RevId: 749128015
2025-04-18 14:14:16 -07:00
vfdev-5
464bc87b03 Updated rules_python patch to get 3.13.2 python 2025-04-11 14:18:12 +00:00
Peter Hawkins
5f9409e7b2 Update packaging and pip versions in rules_python to enable freethreading support.
The same change has been sent upstream as https://github.com/bazelbuild/rules_python/pull/2514

Forked from https://github.com/openxla/xla/pull/20723 for merging.

PiperOrigin-RevId: 712538044
2025-01-06 08:36:22 -08:00
vfdev
6332b90c66 PR #19346: Bumped rules_python version to 0.39.0
Imported from GitHub PR https://github.com/openxla/xla/pull/19346

cc @hawkinsp
Copybara import of the project:

--
292e7ebb7ee57e5af5977c08f0aaf28fc1f852e2 by vfdev-5 <vfdev.5@gmail.com>:

Bumped rules_python version to 0.39.0

Merging this change closes #19346

PiperOrigin-RevId: 699100796
2024-11-22 02:42:21 -08:00
Vadym Matsishevskyi
ab504aaf07 Add Python 3.13.0rc2 support to rules_python in a form of a patch.
TODO: once rules_python has 3.13 out of the box, the patch can be safely removed.

rules_python does not depend on rc versions of Python (seems to be against its philosophy), while JAX wants to support it, that is why adding RC support in a form of a patch instead of adding it directly to rules_python.

PiperOrigin-RevId: 675261914
2024-09-16 13:14:21 -07:00
David Dunleavy
20e13667ba Update @rules_python to 0.34.0 after LLVM integrate
Should fix XLA/JAX CI

PiperOrigin-RevId: 655626888
2024-07-24 11:04:15 -07:00
Vadym Matsishevskyi
3bf2ac3b77 Use hermetic Python in TSL and XLA
PiperOrigin-RevId: 634094641
2024-05-15 16:48:11 -07:00