Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e8bfb48

Browse filesBrowse files
xmcgpratte-outbox
xmc
authored andcommitted
update doc for attr python_interpreter
1 parent 9150caa commit e8bfb48
Copy full SHA for e8bfb48

File tree

Expand file treeCollapse file tree

1 file changed

+10
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-2
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,16 @@ load("@rules_python//python:pip.bzl", "pip_import")
9797
# This rule translates the specified requirements.txt into
9898
# @my_deps//:requirements.bzl, which itself exposes a pip_install method.
9999
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',
102110
)
103111

104112
# Load the pip_install symbol for my_deps, and create the dependencies'

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.