8000 Merge pull request #3 from oleksandrtub/feature/choose-python3-bin · tubular/rules_python@9f8a868 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f8a868

Browse files
author
Oleksandr Kozlenko
authored
Merge pull request bazel-contrib#3 from oleksandrtub/feature/choose-python3-bin
IMP use PYTHON3_BIN_PATH for python3 bin in pip
2 parents 80b46b0 + 5e2c30d commit 9f8a868

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/pip.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def _pip_system_import_impl(repository_ctx):
4040

4141
def _pip3_import_impl(repository_ctx):
4242
"""Python 3 implementation."""
43-
_pip_import_impl(repository_ctx, "python3")
43+
python_bin = repository_ctx.os.environ.get("PYTHON3_BIN_PATH", "python3")
44+
_pip_import_impl(repository_ctx, python_bin)
45+
4446

4547
pip_import = repository_rule(
4648
attrs = {

0 commit comments

Comments
 (0)
0