Skip to content

Commit

Permalink
Add pip2_import, leave pip_import as it is.
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-canva committed Aug 15, 2018
1 parent 24010c1 commit b8f9dea
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion python/pip.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,21 @@ _shared_attrs = {
}

def _pip_import_impl(repository_ctx):
_shared_pip_import_impl("python2", repository_ctx)
_shared_pip_import_impl("python", repository_ctx)

pip_import = repository_rule(
attrs = _shared_attrs,
implementation = _pip_import_impl,
)

def _pip2_import_impl(repository_ctx):
_shared_pip_import_impl("python2", repository_ctx)

pip2_import = repository_rule(
attrs = _shared_attrs,
implementation = _pip2_import_impl,
)

def _pip3_import_impl(repository_ctx):
_shared_pip_import_impl("python3", repository_ctx)

Expand Down

0 comments on commit b8f9dea

Please sign in to comment.