Mercurial > hgrepos > Python2 > PyMuPDF
changeset 11:f704f0a78213
A make target to populate the Python virtual environment
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 17 Sep 2025 12:49:20 +0200 |
| parents | 76e05e28f6a8 |
| children | fdb709369d57 |
| files | Makefile.freebsd |
| diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.freebsd Wed Sep 17 06:30:46 2025 +0200 +++ b/Makefile.freebsd Wed Sep 17 12:49:20 2025 +0200 @@ -26,7 +26,7 @@ # export PYMUPDF_SETUP_MUPDF_TESSERACT=0 # -.PHONY: build +.PHONY: build populate-venv THIS_MAKEFILE_JUSTNAME:= $(firstword $(MAKEFILE_LIST)) THIS_MAKEFILE_DIR:= $(abspath $(dir $(THIS_MAKEFILE_JUSTNAME))) @@ -61,3 +61,11 @@ else $(error Not in a Python virtual environment) endif + + +populate-venv: +ifneq ($(firstword $(PYTHON_PREFIXES)),$(lastword $(PYTHON_PREFIXES))) + $(PYTHON) -m pip install -U -r requirements-build.txt +else + $(error Not in a Python virtual environment) +endif
