8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37f04a4 commit 04c6d7fCopy full SHA for 04c6d7f
python/pip_install/pip_repository.bzl
@@ -12,7 +12,6 @@ def _construct_pypath(rctx):
12
rctx: Handle to the repository_context.
13
Returns: String of the PYTHONPATH.
14
"""
15
- rctx.file("BUILD", "")
16
17
# Get the root directory of these rules
18
rules_root = rctx.path(Label("//:BUILD")).dirname
@@ -64,6 +63,9 @@ def _pip_repository_impl(rctx):
64
63
if rctx.attr.incremental and not rctx.attr.requirements_lock:
65
fail("Incremental mode requires a requirements_lock attribute be specified.")
66
+ # We need a BUILD file to load the generated requirements.bzl
67
+ rctx.file("BUILD.bazel", "")
68
+
69
pypath = _construct_pypath(rctx)
70
71
if rctx.attr.incremental:
0 commit comments