Skip to content

Commit b89fc4f

Browse files
authored
add support to inject other pip index (#103)
1 parent e4dc83f commit b89fc4f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

MODULE.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ use_repo(python)
4848
###############################################################################
4949
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
5050
pip.parse(
51+
envsubst = ["PIP_INDEX_URL"],
52+
extra_pip_args = ["--index-url=${PIP_INDEX_URL:-https://pypi.org/simple/}"],
5153
hub_name = "pip_process",
5254
python_version = PYTHON_VERSION,
5355
requirements_lock = "//src:requirements.txt",

0 commit comments

Comments
 (0)