Skip to content

Commit 9b2b70a

Browse files
authored
chore: use per-rule loads in pip_compile.bzl (#2473)
This is for overall code hygiene, but also because it seems to make some progress on Bazel 9 being able to load files in WORKSPACE mode (something about defs.bzl triggers loading more symbols which can't be found) Work towards #2469
1 parent ef48735 commit 9b2b70a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

python/private/pypi/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ bzl_library(
218218
srcs = ["pip_compile.bzl"],
219219
deps = [
220220
":deps_bzl",
221-
"//python:defs_bzl",
221+
"//python:py_binary_bzl",
222+
"//python:py_test_bzl",
222223
],
223224
)
224225

python/private/pypi/pip_compile.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ NOTE @aignas 2024-06-23: We are using the implementation specific name here to
1919
make it possible to have multiple tools inside the `pypi` directory
2020
"""
2121

22-
load("//python:defs.bzl", _py_binary = "py_binary", _py_test = "py_test")
22+
load("//python:py_binary.bzl", _py_binary = "py_binary")
23+
load("//python:py_test.bzl", _py_test = "py_test")
2324

2425
def pip_compile(
2526
name,

0 commit comments

Comments
 (0)