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 b981944 commit 11e2906Copy full SHA for 11e2906
defs.bzl
@@ -4,7 +4,10 @@ DEFAULT_REPOSITORY_NAME = "pip"
4
5
6
def _pip_repository_impl(rctx):
7
- if not rctx.which(rctx.attr.python_interpreter):
+ python_interpreter = rctx.attr.python_interpreter
8
+ if '/' not in python_interpreter:
9
+ python_interpreter = rctx.which(python_interpreter)
10
+ if not python_interpreter:
11
fail("python interpreter not found")
12
13
rctx.file("BUILD", "")
@@ -20,7 +23,7 @@ def _pip_repository_impl(rctx):
20
23
21
24
result = rctx.execute(
22
25
[
- rctx.which(rctx.attr.python_interpreter),
26
+ python_interpreter,
27
"-m",
28
"extract_wheels",
29
"--requirements",
0 commit comments