File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ END_UNRELEASED_TEMPLATE
110110 ([ #3339 ] ( https://github.com/bazel-contrib/rules_python/issues/3339 ) ).
111111* (uv) {obj}` //python/uv:lock.bzl%lock ` now works with a local platform
112112 runtime.
113+ * (pypi) ` linux_riscv64 ` is added to the platforms list in ` _pip_repository_impl ` ,
114+ which fixes [ a build issue for tensorflow on riscv64] ( https://github.com/bazel-contrib/rules_python/discussions/2729 ) .
113115* (toolchains) WORKSPACE builds now correctly register musl and freethreaded
114116 variants. Setting {obj}` --py_linux_libc=musl ` and ` --py_freethreaded=yes ` now
115117 activate them, respectively.
@@ -1980,4 +1982,4 @@ Breaking changes:
19801982* (pip) Create all_data_requirements alias
19811983* Expose Python C headers through the toolchain.
19821984
1983- [ 0.24.0 ] : https://github.com/bazel-contrib/rules_python/releases/tag/0.24.0
1985+ [ 0.24.0 ] : https://github.com/bazel-contrib/rules_python/releases/tag/0.24.0
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ def _pip_repository_impl(rctx):
9696 "linux_aarch64" ,
9797 "linux_arm" ,
9898 "linux_ppc" ,
99+ "linux_riscv64" ,
99100 "linux_s390x" ,
100101 "linux_x86_64" ,
101102 "osx_aarch64" ,
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ class Arch(Enum):
4545 ppc64le = 5
4646 s390x = 6
4747 arm = 7
48+ riscv64 = 8
4849 amd64 = x86_64
4950 arm64 = aarch64
5051 i386 = x86_32
@@ -269,6 +270,8 @@ def platform_machine(self) -> str:
269270 return "ppc"
270271 elif self .arch == Arch .ppc64le :
271272 return "ppc64le"
273+ elif self .arch == Arch .riscv64 :
274+ return "riscv64"
272275 elif self .arch == Arch .s390x :
273276 return "s390x"
274277 else :
You can’t perform that action at this time.
0 commit comments