Skip to content

Commit

Permalink
Adds a target for installing pip requirements from a file
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon committed Jul 1, 2024
1 parent 14f20cb commit 4ab0d9c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,13 @@ ec/install:
$(@D) --version
@ echo "[$@]: Completed successfully!"

install/pip/% install/pip_pkg_with_no_cli/% pytest/install: export PIP ?= $(if $(shell pyenv which $(PYTHON) 2> /dev/null),pip,$(PYTHON) -m pip)
install/pip/% install/pip_pkg_with_no_cli/% install/pip_requirements/% pytest/install: export PIP ?= $(if $(shell pyenv which $(PYTHON) 2> /dev/null),pip,$(PYTHON) -m pip)

install/pip_requirements/%:
@ echo "[$@]: Installing pip requirements from $*..."
$(PIP) install -r $*
@ echo "[$@]: Completed successfully!"

install/pip/%: export PKG_VERSION_CMD ?= $* --version
install/pip/%: | $(BIN_DIR) guard/env/PYPI_PKG_NAME
@ echo "[$@]: Installing $*..."
Expand All @@ -195,6 +201,7 @@ install/pip/%: | $(BIN_DIR) guard/env/PYPI_PKG_NAME
install/pip_pkg_with_no_cli/%: | guard/env/PYPI_PKG_NAME
@ echo "[$@]: Installing $*..."
$(PIP) install $(PYPI_PKG_NAME)
@ echo "[$@]: Completed successfully!"

fixuid/install: export FIXUID_VERSION ?= tags/v$(call match_pattern_in_file,$(TARDIGRADE_CI_GITHUB_TOOLS),'boxboat/fixuid','$(SEMVER_PATTERN)')
fixuid/install: QUERY = .name | endswith("$(OS)-$(ARCH).tar.gz")
Expand Down

0 comments on commit 4ab0d9c

Please sign in to comment.