diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2020-12-24 15:59:57 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-12-24 15:59:57 +0100 |
commit | d85012b49b1d251cebb63ec1326bb946d0b5f6b8 (patch) | |
tree | 56aca85522d8e5df18a4db62a4e0facd0d68214e | |
parent | 2fc2d17a27150586f47d25876907bc9c33a829a5 (diff) | |
download | searxng-d85012b49b1d251cebb63ec1326bb946d0b5f6b8.tar.gz searxng-d85012b49b1d251cebb63ec1326bb946d0b5f6b8.zip |
[perf] virtualenv: install boilerplate only once
Install boilerplate packages (pip, wheel, setuptools and requirements.txt) only
once, when virtualenv is created.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r-- | utils/makefile.python | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/makefile.python b/utils/makefile.python index c7f1e03ea..0ae912b5e 100644 --- a/utils/makefile.python +++ b/utils/makefile.python @@ -113,6 +113,8 @@ quiet_cmd_virtualenv = PYENV usage: $ source ./$@/bin/activate cmd_virtualenv = \ if [ ! -d "./$(PY_ENV)" ];then \ $(PYTHON) -m venv $(VTENV_OPTS) $2; \ + $(PY_ENV_BIN)/python -m pip install $(PIP_VERBOSE) -U pip wheel setuptools; \ + $(PY_ENV_BIN)/python -m pip install $(PIP_VERBOSE) -r requirements.txt; \ else \ echo "PYENV using virtualenv from $2"; \ fi @@ -193,8 +195,6 @@ pyclean: pyenv: $(PY_ENV) $(PY_ENV): python-exe $(call cmd,virtualenv,$(PY_ENV)) - $(Q)$(PY_ENV_BIN)/python -m pip install $(PIP_VERBOSE) -U pip wheel pip setuptools - $(Q)$(PY_ENV_BIN)/python -m pip install $(PIP_VERBOSE) -r requirements.txt PHONY += pylint-exe pylint-exe: $(PY_ENV) |