10000 Remove bzl_library from python/pip_install/BUILD so that skylib dep i… · lapointexavier/rules_python@c30e05e · GitHub
[go: up one dir, main page]

Skip to content

Commit c30e05e

Browse files
author
Jonathon Belotti
authored
Remove bzl_library from python/pip_install/BUILD so that skylib dep is not exposed to end-users (bazel-contrib#430)
1 parent e486946 commit c30e05e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

docs/BUILD

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ bzl_library(
5454
deps = [":bazel_python_tools"],
5555
)
5656

57+
bzl_library(
58+
name = "pip_install_bzl",
59+
srcs = [
60+
"//python/pip_install:pip_repository.bzl",
61+
"//python/pip_install:repositories.bzl",
62+
],
63+
)
64+
5765
stardoc(
5866
name = "core-docs",
5967
out = "python.md",
@@ -71,7 +79,7 @@ stardoc(
7179
input = "//python:pip.bzl",
7280
deps = [
7381
":bazel_repo_tools",
74-
"//python/pip_install:bzl",
82+
":pip_install_bzl",
7583
],
7684
)
7785

python/pip_install/BUILD

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2-
31
filegroup(
42
name = "distribution",
53
srcs = glob(["*.bzl"]) + [
@@ -9,11 +7,7 @@ filegroup(
97
visibility = ["//:__pkg__"],
108
)
119

12-
bzl_library(
13-
name = "bzl",
14-
srcs = [
15-
"pip_repository.bzl",
16-
"repositories.bzl",
17-
],
10+
exports_files(
11+
["pip_repository.bzl", "repositories.bzl"],
1812
visibility = ["//docs:__pkg__"],
1913
)

0 commit comments

Comments
 (0)
0