Skip to content

Commit

Permalink
Update rules_python.patch to support Python 3.13.0 and update python …
Browse files Browse the repository at this point in the history
…3.13 packages in JAX.

The downloaded Python `tar.gz` files should have suffix `install_only`.

PiperOrigin-RevId: 684113192
  • Loading branch information
tensorflower-gardener authored and copybara-github committed Oct 9, 2024
1 parent c092c75 commit ddd364d
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions third_party/py/rules_python.patch
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
Subject: [PATCH] Add Python 3.13.0rc2 support to rules_python
---
Index: python/versions.bzl
<+>UTF-8
===================================================================
diff --git a/python/versions.bzl b/python/versions.bzl
--- a/python/versions.bzl (revision 084b877c98b580839ceab2b071b02fc6768f3de6)
+++ b/python/versions.bzl (date 1726256410148)
@@ -484,6 +484,19 @@
index fd385cd1..eb4133f1 100644
--- a/python/versions.bzl
+++ b/python/versions.bzl
@@ -484,6 +484,19 @@ TOOL_VERSIONS = {
},
"strip_prefix": "python",
},
+ "3.13.0": {
+ "url": "20240909/cpython-{python_version}rc2+20240909-{platform}-{build}.tar.gz",
+ "url": "20241008/cpython-{python_version}+20241008-{platform}-{build}.tar.gz",
+ "sha256": {
+ "aarch64-apple-darwin": "5d38ca1e6b030b004714e10813903e906c6b8f2a6361770df4512a838f4a4a9f",
+ "aarch64-unknown-linux-gnu": "85e103fc81a1fcf94a93180f6df42e39a7dc15d4b711705e133dc2ec847552e7",
+ "ppc64le-unknown-linux-gnu": "3be3d8aefae579c420fc6abf01658ae89fda8120154f989575b08085d2f8d6dc",
+ "s390x-unknown-linux-gnu": "6ec5130d62473368ecc7e55338bf1cc58607dbfe8088959cab51265b9f13c38d",
+ "x86_64-apple-darwin": "c3dcd4314324159945dc19342c73b9deb8de0f2d1709171427dd52f1a05eecca",
+ "x86_64-pc-windows-msvc": "31282f912e984d399c56925dfb69a4f3ce76226dfb4806b09f37e3b4a15e5a30",
+ "x86_64-unknown-linux-gnu": "028581cce5004c66775a3ae8b3ed65681ab4b289608dfd1aec3354d169216099",
+ "aarch64-apple-darwin": "5d3cb8d7ca4cfbbe7ae1f118f26be112ee417d982fab8c6d85cfd8ccccf70718",
+ "aarch64-unknown-linux-gnu": "c1142af8f2c85923d2ba8201a35b913bb903a5d15f052c38bbecf2f49e2342dc",
+ "ppc64le-unknown-linux-gnu": "1be64a330499fed4e1f864b97eef5445b0e4abc0559ae45df3108981800cf998",
+ "s390x-unknown-linux-gnu": "c0b1cc51426feadaa932fdd9afd9a9af789916e128e48ac8909f9a269bbbd749",
+ "x86_64-apple-darwin": "b58ca12d9ae14bbd79f9e5cf4b748211ff1953e59abeac63b0f4e8e49845669f",
+ "x86_64-pc-windows-msvc": "c7651a7a575104f47c808902b020168057f3ad80f277e54cecfaf79a9ff50e22",
+ "x86_64-unknown-linux-gnu": "455200e1a202e9d9ef4b630c04af701c0a91dcaa6462022efc76893fc762ec95",
+ },
+ "strip_prefix": "python",
+ },
}

# buildifier: disable=unsorted-dict-items
@@ -493,6 +506,7 @@
@@ -493,6 +506,7 @@ MINOR_MAPPING = {
"3.10": "3.10.14",
"3.11": "3.11.9",
"3.12": "3.12.3",
Expand Down

0 comments on commit ddd364d

Please sign in to comment.