Skip to content

Commit feaf6d1

Browse files
committed
fix: Add linux_riscv64 to _pip_repository_impl
Fix #2729
1 parent 43a5acf commit feaf6d1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

python/private/pypi/pip_repository.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)