From 1a4524e03c2091b896f7efadb0b3a646888bd2ba Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 18 Dec 2020 22:31:13 +0100 Subject: [mod] remove obsolete virtualenv command Installation and use of the command 'virtualenv' was only needed in py2 and py2 is no longer suported by searx. In py3 the command is replaced by 'python -m venv'. Signed-off-by: Markus Heiser --- utils/makefile.python | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'utils/makefile.python') diff --git a/utils/makefile.python b/utils/makefile.python index 668b0894b..12e3e1236 100644 --- a/utils/makefile.python +++ b/utils/makefile.python @@ -41,19 +41,6 @@ ifeq ($(OS),Windows_NT) endif VTENV_OPTS ?= -ifeq ($(PYTHON),python) - VIRTUALENV = virtualenv -else - VIRTUALENV = virtualenv --python=$(PYTHON) -endif - -ifeq ($(KBUILD_VERBOSE),1) - PIP_VERBOSE = - VIRTUALENV_VERBOSE = -else - PIP_VERBOSE = "-q" - VIRTUALENV_VERBOSE = "-q" -endif python-help:: @echo 'makefile.python:' @@ -125,7 +112,7 @@ quiet_cmd_pyenvuninstall = PYENV uninstall $2 quiet_cmd_virtualenv = PYENV usage: $ source ./$@/bin/activate cmd_virtualenv = \ if [ ! -d "./$(PY_ENV)" ];then \ - $(VIRTUALENV) $(VIRTUALENV_VERBOSE) $(VTENV_OPTS) $2; \ + $(PYTHON) -m venv $(VTENV_OPTS) $2; \ else \ echo "PYENV using virtualenv from $2"; \ fi -- cgit v1.2.3