Skip to content

Commit

Permalink
Building python binding with bazel on s390x
Browse files Browse the repository at this point in the history
Signed-off-by: Gong Su <gong_su@hotmail.com>
  • Loading branch information
gongsu832 committed Nov 12, 2024
1 parent 26fdbd9 commit 7ed0c48
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions python/dist/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,25 @@ config_setting(
},
)

config_setting(
name = "linux_s390x_release",
flag_values = {
"//toolchain:release": "True",
},
values = {"cpu": "linux-s390x"},
)

config_setting(
name = "linux_s390x_local",
constraint_values = [
"@platforms//os:linux",
"@platforms//cpu:s390x",
],
flag_values = {
"//toolchain:release": "False",
},
)

config_setting(
name = "osx_x86_64_release",
flag_values = {
Expand Down Expand Up @@ -328,6 +347,8 @@ py_wheel(
":linux_x86_64_release": "manylinux2014_x86_64",
":linux_aarch64_local": "linux_aarch64",
":linux_aarch64_release": "manylinux2014_aarch64",
":linux_s390x_local": "linux_s390x",
":linux_s390x_release": "manylinux2014_s390x",
":osx_universal2": "macosx_10_9_universal2",
":osx_aarch64": "macosx_11_0_arm64",
":windows_x86_32": "win32",
Expand Down Expand Up @@ -458,6 +479,7 @@ py_dist(
"win64": "310",
"linux-x86_64": "38",
"linux-aarch_64": "38",
"linux-s390x": "38",
"osx-universal2": "38",
},
# LINT.ThenChange(:python_tag)
Expand Down
1 change: 1 addition & 0 deletions python/dist/dist.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def _get_suffix(limited_api, python_version, cpu):
"linux-aarch_64": "aarch64-linux-gnu",
"linux-x86_64": "x86_64-linux-gnu",
"k8": "x86_64-linux-gnu",
"s390x": "s390x-linux-gnu",
}

return ".cpython-{}-{}.{}".format(
Expand Down

0 comments on commit 7ed0c48

Please sign in to comment.