commit | daf422472325a5ab3e56e8a4d1bd59699fb3280a | [log] [tgz] |
---|---|---|
author | JeffreyALaw <jeffreyalaw@gmail.com> | Sat May 18 22:26:05 2024 -0600 |
committer | GitHub <noreply@github.com> | Sun May 19 04:26:05 2024 +0000 |
tree | 09422a2bea4ac3b7b9a8a1be760a43ff31521437 | |
parent | a6cb620f0c0c34082040b0560d4dd2e11e39715e [diff] |
feat(toolchains): Add riscv64 linux platform to available toolchain platforms (#1907) This change adds support for the riscv64 linux platform to rules_python. It is one of two changes necessary to allow riscv64 linux platforms to bootstrap modern versions of bazel. Before this change an attempt to bootstrap bazel would fail with this error: ``` ERROR: An error occurred during the fetch of repository 'python': Traceback (most recent call last): File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/c892bce6f2ccb80708b13f24cc8fb67e/external/rules_python/python/private/toolchains_repo.bzl", line 139, column 38, in _toolchain_aliases_impl host_platform = get_host_platform(os_name, arch) File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/c892bce6f2ccb80708b13f24cc8fb67e/external/rules_python/python/private/toolchains_repo.bzl", line 298, column 13, in get_host_platform fail("No platform declared for host OS {} on arch {}".format(os_name, arch)) Error in fail: No platform declared for host OS linux on arch riscv64 ``` This change fixes that error. --------- Co-authored-by: Ignas Anikevicius <240938+aignas@users.noreply.github.com>
This repository is the home of the core Python rules -- py_library
, py_binary
, py_test
, py_proto_library
, and related symbols that provide the basis for Python support in Bazel. It also contains package installation rules for integrating with PyPI and other indices.
Documentation for rules_python is at https://rules-python.readthedocs.io and in the Bazel Build Encyclopedia.
Examples live in the examples directory.
Currently, the core rules build into the Bazel binary, and the symbols in this repository are simple aliases. However, we are migrating the rules to Starlark and removing them from the Bazel binary. Therefore, the future-proof way to depend on Python rules is via this repository. SeeMigrating from the Bundled Rules
below.
The core rules are stable. Their implementation in Bazel is subject to Bazel's backward compatibility policy. Once migrated to rules_python, they may evolve at a different rate, but this repository will still follow semantic versioning.
The Bazel community maintains this repository. Neither Google nor the Bazel team provides support for the code. However, this repository is part of the test suite used to vet new Bazel releases. See How to contribute page for information on our development workflow.
For detailed documentation, see https://rules-python.readthedocs.io
See Bzlmod support for more details.