diff --git a/README.md b/README.md index 9c44f40d95..f58213b0ee 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Status: This is **ALPHA** software. ## Rules * [pip_import](docs/python/pip.md#pip_import) +* [pip3_import](docs/python/pip.md#pip3_import) * [py_library](docs/python/python.md#py_library) * [py_binary](docs/python/python.md#py_binary) * [py_test](docs/python/python.md#py_test) @@ -75,6 +76,9 @@ load("@my_deps//:requirements.bzl", "pip_install") pip_install() ``` +The `pip_import` rule uses the system `python` command, which is usually +Python 2. `pip3_import` uses the system `python3` command. + ## Consuming `pip` dependencies Once a set of dependencies has been imported via `pip_import` and `pip_install` diff --git a/docs/index.html b/docs/index.html index f3487d21bd..5a35c5508d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -97,6 +97,17 @@

Repository Rules

+ + + + pip3_import + + + +

A rule for importing <code>requirements.txt</code> dependencies into Bazel.

+ + + diff --git a/docs/index.md b/docs/index.md index 79f931a44c..ac62a15413 100644 --- a/docs/index.md +++ b/docs/index.md @@ -40,6 +40,17 @@ + + + + pip3_import + + + +

A rule for importing <code>requirements.txt</code> dependencies into Bazel.

+ + + diff --git a/docs/python/pip.html b/docs/python/pip.html index 8045e3f551..3bc0ee1774 100644 --- a/docs/python/pip.html +++ b/docs/python/pip.html @@ -61,6 +61,7 @@

Import pip requirements into Bazel.