Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Fix builds with python3 as default python (#490)
Browse files Browse the repository at this point in the history
* adding py_runtime target to use with envs that have python pointing to py3
  • Loading branch information
nlopezgi committed Aug 16, 2018
1 parent dc39825 commit c6113a5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions python/BUILD
Expand Up @@ -14,3 +14,16 @@
package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

# Python2 is a dependency of rules_docker due to its dependency on
# containerregistry. To run builds on environments in which 'which python'
# points to python3, you can use the py_runtime target below.
# To use this target, simply add the following flag to your build commands:
# --python_top=//python:py_runtime_2
# Note you need to have a symlink to a valid python2 version in
# '/usr/bin/python2' for this to work.
py_runtime(
name = "py_runtime_2",
files = [],
interpreter_path = "/usr/bin/python2",
)

0 comments on commit c6113a5

Please sign in to comment.