Merge pull request #949 from cyqsimon/python-pip-override

Allow overriding `python3` & `pip3` binary in Makefile
This commit is contained in:
Philipp C. Heckel 2023-11-17 05:35:56 -05:00 committed by GitHub
commit 0b41356179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,6 @@
MAKEFLAGS := --jobs=1
PYTHON := python3
PIP := pip3
VERSION := $(shell git describe --tag)
COMMIT := $(shell git rev-parse --short HEAD)
@ -115,16 +117,16 @@ build-deps-ubuntu:
docs: docs-deps docs-build
docs-venv: .PHONY
python3 -m venv ./venv
$(PYTHON) -m venv ./venv
docs-build: docs-venv
(. venv/bin/activate && mkdocs build)
(. venv/bin/activate && $(PYTHON) -m mkdocs build)
docs-deps: docs-venv
(. venv/bin/activate && pip3 install -r requirements.txt)
(. venv/bin/activate && $(PIP) install -r requirements.txt)
docs-deps-update: .PHONY
(. venv/bin/activate && pip3 install -r requirements.txt --upgrade)
(. venv/bin/activate && $(PIP) install -r requirements.txt --upgrade)
# Web app