File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ def _pip_import_impl(repository_ctx):
43
43
44
44
pip_import = repository_rule (
45
45
attrs = {
46
+ "python_interpreter" : attr .string (default = "python" , doc = """
47
+ The command to run the Python interpreter used to invoke pip and unpack the
48
+ wheels.
49
+ """ ),
46
50
"requirements" : attr .label (
47
51
mandatory = True ,
48
52
allow_single_file = True ,
49
53
doc = "The label of the requirements.txt file." ,
50
54
),
51
- "python_interpreter" : attr .string (default = "python" , doc = """
52
- The command to run the Python interpreter used to invoke pip and unpack the
53
- wheels.
54
- """ ),
55
55
"_script" : attr .label (
56
56
executable = True ,
57
57
default = Label ("//tools:piptool.par" ),
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ whl_library = repository_rule(
40
40
"extras" : attr .string_list (doc = """
41
41
A subset of the "extras" available from this <code>.whl</code> for which
42
42
<code>requirements</code> has the dependencies.
43
+ """ ),
44
+ "python_interpreter" : attr .string (default = "python" , doc = """
45
+ The command to run the Python interpreter used when unpacking the wheel.
43
46
""" ),
44
47
"requirements" : attr .string (doc = """
45
48
The name of the <code>pip_import</code> repository rule from which to load this
@@ -53,9 +56,6 @@ The path to the <code>.whl</code> file. The name is expected to follow [this
53
56
convention](https://www.python.org/dev/peps/pep-0427/#file-name-convention)).
54
57
""" ,
55
58
),
56
- "python_interpreter" : attr .string (default = "python" , doc = """
57
- The command to run the Python interpreter used when unpacking the wheel.
58
- """ ),
59
59
"_script" : attr .label (
60
60
executable = True ,
61
61
default = Label ("//tools:whltool.par" ),
You can’t perform that action at this time.
0 commit comments