Skip to content

Commit

Permalink
makefile: bootstrap nox if not present
Browse files Browse the repository at this point in the history
in a venv
  • Loading branch information
svinota committed Jan 29, 2024
1 parent cd8b894 commit 0a02b52
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@
python ?= $(shell util/find_python.sh)

define nox
nox $(1) -- '$(subst ",\",${noxconfig})'
{\
which nox 2>/dev/null || {\
python -m venv ~/.venv-boot/;\
. ~/.venv-boot/bin/activate;\
pip install --upgrade pip;\
pip install nox;\
};\
nox $(1) -- '$(subst ",\",${noxconfig})';\
}
endef

.PHONY: all
Expand Down

0 comments on commit 0a02b52

Please sign in to comment.