Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding python3 & pip3 binary in Makefile #949

Merged
merged 2 commits into from
Nov 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Allow overriding python3 & pip3 binary in Makefile
cyqsimon committed Nov 17, 2023
commit e724aace4991b730d99828c1191950689ce32fd4
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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) 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