Skip to content

Commit

Permalink
Add support for s390x and update python version
Browse files Browse the repository at this point in the history
Needed to build TensorFlow on s390x.
  • Loading branch information
namrata-ibm committed Aug 8, 2023
1 parent bb8c485 commit 1785d40
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions python/versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,19 @@ TOOL_VERSIONS = {
},
"strip_prefix": "python",
},
"3.9.17": {
"url": "20230726/cpython-{python_version}+20230726-{platform}-{build}.tar.gz",
"sha256": {
"aarch64-apple-darwin": "73dbe2d702210b566221da9265acc274ba15275c5d0d1fa327f44ad86cde9aa1",
"aarch64-unknown-linux-gnu": "b77012ddaf7e0673e4aa4b1c5085275a06eee2d66f33442b5c54a12b62b96cbe",
"ppc64le-unknown-linux-gnu": "c591a28d943dce5cf9833e916125fdfbeb3120270c4866ee214493ccb5b83c3c",
"s390x-unknown-linux-gnu": "01454d7cc7c9c2fccde42ba868c4f372eaaafa48049d49dd94c9cf2875f497e6",
"x86_64-apple-darwin": "dfe1bea92c94b9cb779288b0b06e39157c5ff7e465cdd24032ac147c2af485c0",
"x86_64-pc-windows-msvc": "9b9a1e21eff29dcf043cea38180cf8ca3604b90117d00062a7b31605d4157714",
"x86_64-unknown-linux-gnu": "26c4a712b4b8e11ed5c027db5654eb12927c02da4857b777afb98f7a930ce637",
},
"strip_prefix": "python",
},
"3.10.2": {
"url": "20220227/cpython-{python_version}+20220227-{platform}-{build}.tar.gz",
"sha256": {
Expand Down Expand Up @@ -220,6 +233,19 @@ TOOL_VERSIONS = {
},
"strip_prefix": "python",
},
"3.10.12": {
"url": "20230726/cpython-{python_version}+20230726-{platform}-{build}.tar.gz",
"sha256": {
"aarch64-apple-darwin": "bc66c706ea8c5fc891635fda8f9da971a1a901d41342f6798c20ad0b2a25d1d6",
"aarch64-unknown-linux-gnu": "fee80e221663eca5174bd794cb5047e40d3910dbeadcdf1f09d405a4c1c15fe4",
"ppc64le-unknown-linux-gnu": "bb5e8cb0d2e44241725fa9b342238245503e7849917660006b0246a9c97b1d6c",
"s390x-unknown-linux-gnu": "8d33d435ae6fb93ded7fc26798cc0a1a4f546a4e527012a1e2909cc314b332df",
"x86_64-apple-darwin": "8a6e3ed973a671de468d9c691ed9cb2c3a4858c5defffcf0b08969fba9c1dd04",
"x86_64-pc-windows-msvc": "c1a31c353ca44de7d1b1a3b6c55a823e9c1eed0423d4f9f66e617bdb1b608685",
"x86_64-unknown-linux-gnu": "a476dbca9184df9fc69fe6309cda5ebaf031d27ca9e529852437c94ec1bc43d3",
},
"strip_prefix": "python",
},
"3.11.1": {
"url": "20230116/cpython-{python_version}+20230116-{platform}-{build}.tar.gz",
"sha256": {
Expand All @@ -243,6 +269,19 @@ TOOL_VERSIONS = {
},
"strip_prefix": "python",
},
"3.11.4": {
"url": "20230726/cpython-{python_version}+20230726-{platform}-{build}.tar.gz",
"sha256": {
"aarch64-apple-darwin": "cb6d2948384a857321f2aa40fa67744cd9676a330f08b6dad7070bda0b6120a4",
"aarch64-unknown-linux-gnu": "2e84fc53f4e90e11963281c5c871f593abcb24fc796a50337fa516be99af02fb",
"ppc64le-unknown-linux-gnu": "df7b92ed9cec96b3bb658fb586be947722ecd8e420fb23cee13d2e90abcfcf25",
"s390x-unknown-linux-gnu": "e477f0749161f9aa7887964f089d9460a539f6b4a8fdab5166f898210e1a87a4",
"x86_64-apple-darwin": "47e1557d93a42585972772e82661047ca5f608293158acb2778dccf120eabb00",
"x86_64-pc-windows-msvc": "878614c03ea38538ae2f758e36c85d2c0eb1eaaca86cd400ff8c76693ee0b3e1",
"x86_64-unknown-linux-gnu": "e26247302bc8e9083a43ce9e8dd94905b40d464745b1603041f7bc9a93c65d05",
},
"strip_prefix": "python",
},
}

# buildifier: disable=unsorted-dict-items
Expand Down Expand Up @@ -286,6 +325,17 @@ PLATFORMS = {
# repository_ctx.execute(["uname", "-m"]).stdout.strip()
arch = "ppc64le",
),
"s390x-unknown-linux-gnu": struct(
compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:s390x",
],
os_name = LINUX_NAME,
# Note: this string differs between OSX and Linux
# Matches the value returned from:
# repository_ctx.execute(["uname", "-m"]).stdout.strip()
arch = "s390x",
),
"x86_64-apple-darwin": struct(
compatible_with = [
"@platforms//os:macos",
Expand Down

0 comments on commit 1785d40

Please sign in to comment.