Skip to content

Commit

Permalink
Doc on EXTRA_INDEX_URL
Browse files Browse the repository at this point in the history
Signed-off-by: David Wood <dawood@us.ibm.com>
  • Loading branch information
daw3rd committed May 3, 2024
1 parent 03ee01d commit e9384a8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .make.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
# DOCKER_NAME - defines the name of the docker image
# For example DOCKER_NAME=noop
# EXTRA_INDEX_URL - can define an additional pipy index for use
# in creating venv and images.
# in creating venv and images. This will be used on pip installs
# when building the venv and will be made available as
# a docker build argument when building the docker image.
# This is useful when the repo is used in conjunction with an
# inhouse or private pypi.
#
# Targets defined here use double colon so can be overriden
#
# Reusable rules begin with '.'. To reuse without modification, for example,
Expand Down Expand Up @@ -240,7 +245,10 @@ __check_defined = \
@source venv/bin/activate; \
pip install --upgrade pip; \
pip install wheel; \
pip install --extra-index-url "$(EXTRA_INDEX_URL)" -r requirements.txt;
if [ ! -z "$(EXTRA_INDEX_URL)" ]; then \
extra_url='--extra-index-url $(EXTRA_INDEX_URL)'; \
fi; \
pip install $$extra_url -r requirements.txt;

.PHONY: .defaults.check.installed
.defaults.check.installed::
Expand Down

0 comments on commit e9384a8

Please sign in to comment.