Skip to content

Commit e549810

Browse files
authored
feat: Add s390x release (#1352)
Include s390x in release and update python-build-standalone to 3.9.17, 3.10.12, 3.11.4. [Latest python-build-standalone release](https://github.com/indygreg/python-build-standalone/releases/tag/20230726) has s390x support added. These changes are needed to build TensorFlow on s390x, which is currently blocked due to missing support.
1 parent 0e0ac09 commit e549810

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

python/versions.bzl

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,19 @@ TOOL_VERSIONS = {
153153
},
154154
"strip_prefix": "python",
155155
},
156+
"3.9.17": {
157+
"url": "20230726/cpython-{python_version}+20230726-{platform}-{build}.tar.gz",
158+
"sha256": {
159+
"aarch64-apple-darwin": "73dbe2d702210b566221da9265acc274ba15275c5d0d1fa327f44ad86cde9aa1",
160+
"aarch64-unknown-linux-gnu": "b77012ddaf7e0673e4aa4b1c5085275a06eee2d66f33442b5c54a12b62b96cbe",
161+
"ppc64le-unknown-linux-gnu": "c591a28d943dce5cf9833e916125fdfbeb3120270c4866ee214493ccb5b83c3c",
162+
"s390x-unknown-linux-gnu": "01454d7cc7c9c2fccde42ba868c4f372eaaafa48049d49dd94c9cf2875f497e6",
163+
"x86_64-apple-darwin": "dfe1bea92c94b9cb779288b0b06e39157c5ff7e465cdd24032ac147c2af485c0",
164+
"x86_64-pc-windows-msvc": "9b9a1e21eff29dcf043cea38180cf8ca3604b90117d00062a7b31605d4157714",
165+
"x86_64-unknown-linux-gnu": "26c4a712b4b8e11ed5c027db5654eb12927c02da4857b777afb98f7a930ce637",
166+
},
167+
"strip_prefix": "python",
168+
},
156169
"3.10.2": {
157170
"url": "20220227/cpython-{python_version}+20220227-{platform}-{build}.tar.gz",
158171
"sha256": {
@@ -220,6 +233,19 @@ TOOL_VERSIONS = {
220233
},
221234
"strip_prefix": "python",
222235
},
236+
"3.10.12": {
237+
"url": "20230726/cpython-{python_version}+20230726-{platform}-{build}.tar.gz",
238+
"sha256": {
239+
"aarch64-apple-darwin": "bc66c706ea8c5fc891635fda8f9da971a1a901d41342f6798c20ad0b2a25d1d6",
240+
"aarch64-unknown-linux-gnu": "fee80e221663eca5174bd794cb5047e40d3910dbeadcdf1f09d405a4c1c15fe4",
241+
"ppc64le-unknown-linux-gnu": "bb5e8cb0d2e44241725fa9b342238245503e7849917660006b0246a9c97b1d6c",
242+
"s390x-unknown-linux-gnu": "8d33d435ae6fb93ded7fc26798cc0a1a4f546a4e527012a1e2909cc314b332df",
243+
"x86_64-apple-darwin": "8a6e3ed973a671de468d9c691ed9cb2c3a4858c5defffcf0b08969fba9c1dd04",
244+
"x86_64-pc-windows-msvc": "c1a31c353ca44de7d1b1a3b6c55a823e9c1eed0423d4f9f66e617bdb1b608685",
245+
"x86_64-unknown-linux-gnu": "a476dbca9184df9fc69fe6309cda5ebaf031d27ca9e529852437c94ec1bc43d3",
246+
},
247+
"strip_prefix": "python",
248+
},
223249
"3.11.1": {
224250
"url": "20230116/cpython-{python_version}+20230116-{platform}-{build}.tar.gz",
225251
"sha256": {
@@ -243,6 +269,19 @@ TOOL_VERSIONS = {
243269
},
244270
"strip_prefix": "python",
245271
},
272+
"3.11.4": {
273+
"url": "20230726/cpython-{python_version}+20230726-{platform}-{build}.tar.gz",
274+
"sha256": {
275+
"aarch64-apple-darwin": "cb6d2948384a857321f2aa40fa67744cd9676a330f08b6dad7070bda0b6120a4",
276+
"aarch64-unknown-linux-gnu": "2e84fc53f4e90e11963281c5c871f593abcb24fc796a50337fa516be99af02fb",
277+
"ppc64le-unknown-linux-gnu": "df7b92ed9cec96b3bb658fb586be947722ecd8e420fb23cee13d2e90abcfcf25",
278+
"s390x-unknown-linux-gnu": "e477f0749161f9aa7887964f089d9460a539f6b4a8fdab5166f898210e1a87a4",
279+
"x86_64-apple-darwin": "47e1557d93a42585972772e82661047ca5f608293158acb2778dccf120eabb00",
280+
"x86_64-pc-windows-msvc": "878614c03ea38538ae2f758e36c85d2c0eb1eaaca86cd400ff8c76693ee0b3e1",
281+
"x86_64-unknown-linux-gnu": "e26247302bc8e9083a43ce9e8dd94905b40d464745b1603041f7bc9a93c65d05",
282+
},
283+
"strip_prefix": "python",
284+
},
246285
}
247286

248287
# buildifier: disable=unsorted-dict-items
@@ -286,6 +325,17 @@ PLATFORMS = {
286325
# repository_ctx.execute(["uname", "-m"]).stdout.strip()
287326
arch = "ppc64le",
288327
),
328+
"s390x-unknown-linux-gnu": struct(
329+
compatible_with = [
330+
"@platforms//os:linux",
331+
"@platforms//cpu:s390x",
332+
],
333+
os_name = LINUX_NAME,
334+
# Note: this string differs between OSX and Linux
335+
# Matches the value returned from:
336+
# repository_ctx.execute(["uname", "-m"]).stdout.strip()
337+
arch = "s390x",
338+
),
289339
"x86_64-apple-darwin": struct(
290340
compatible_with = [
291341
"@platforms//os:macos",

0 commit comments

Comments
 (0)