diff options
author | Yifan Hong <elsk@google.com> | 2024-01-17 18:02:18 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-01-17 18:02:18 +0000 |
commit | 6954130f57eb9a56a82d4146aeafb16ef30f907a (patch) | |
tree | acdcc148cabfb6f8242a6c83e37625eeaea4e628 /python/py_runtime_pair.bzl | |
parent | 1508c18d9e27325a8d9c574a90d205e0a1d8a78f (diff) | |
download | bazelbuild-rules_python-6954130f57eb9a56a82d4146aeafb16ef30f907a.tar.gz |
Revert "Upgrade bazelbuild-rules_python to 0.28.0"
This reverts commit 1508c18d9e27325a8d9c574a90d205e0a1d8a78f.
Reason for revert: breaks build, not caught by treehugger
Change-Id: Id40b5eefc5f4f0f6e4a0122fbfa53b0c3c265985
Diffstat (limited to 'python/py_runtime_pair.bzl')
-rw-r--r-- | python/py_runtime_pair.bzl | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/python/py_runtime_pair.bzl b/python/py_runtime_pair.bzl index 1728dcd..951c606 100644 --- a/python/py_runtime_pair.bzl +++ b/python/py_runtime_pair.bzl @@ -14,11 +14,7 @@ """Public entry point for py_runtime_pair.""" -load("@bazel_tools//tools/python:toolchain.bzl", _bazel_tools_impl = "py_runtime_pair") -load("//python/private:py_runtime_pair_macro.bzl", _starlark_impl = "py_runtime_pair") -load("//python/private:util.bzl", "IS_BAZEL_6_OR_HIGHER") - -_py_runtime_pair = _starlark_impl if IS_BAZEL_6_OR_HIGHER else _bazel_tools_impl +load("@bazel_tools//tools/python:toolchain.bzl", _py_runtime_pair = "py_runtime_pair") # NOTE: This doc is copy/pasted from the builtin py_runtime_pair rule so our # doc generator gives useful API docs. @@ -47,8 +43,7 @@ def py_runtime_pair(name, py2_runtime = None, py3_runtime = None, **attrs): ```python # In your BUILD file... - load("@rules_python//python:py_runtime.bzl", "py_runtime") - load("@rules_python//python:py_runtime_pair.bzl", "py_runtime_pair") + load("@rules_python//python:defs.bzl", "py_runtime_pair") py_runtime( name = "my_py3_runtime", |