File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Original file line number Diff line number Diff line change @@ -97,8 +97,16 @@ load("@rules_python//python:pip.bzl", "pip_import")
97
97
# This rule translates the specified requirements.txt into
98
98
# @my_deps//:requirements.bzl, which itself exposes a pip_install method.
99
99
pip_import(
100
- name = " my_deps" ,
101
- requirements = " //path/to:requirements.txt" ,
100
+ name = " my_deps" ,
101
+ requirements = " //path/to:requirements.txt" ,
102
+ )
103
+
104
+ # Python interpreter can be specify optionally to support customized version,
105
+ # such as "python3" or "python3.7"
106
+ pip_import(
107
+ name = " my_deps" ,
108
+ requirements = " //path/to:requirements.txt" ,
109
+ python_interpreter = ' python3.7' ,
102
110
)
103
111
104
112
# Load the pip_install symbol for my_deps, and create the dependencies'
You can’t perform that action at this time.
0 commit comments