Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

Merge branch 'master' of https://github.com/asciimoo/searx into filtron

Markus Heiser2441e242884a
diff --cc Makefile
index f38b5ca89,abd0eddb8..aefd005f4
--- a/Makefile
+++ b/Makefile
@@@ -207,11 -182,15 +207,15 @@@ gecko.driver
# test
# ----
-PHONY += test test.pylint test.pep8 test.unit test.coverage test.robot
-
+PHONY += test test.sh test.pylint test.pep8 test.unit test.coverage test.robot
test: buildenv test.pylint test.pep8 test.unit gecko.driver test.robot
+ ifeq ($(PY),2)
+ test.pylint:
+ @echo "LINT skip liniting py2"
+ else
# TODO: balance linting with pylint
+
test.pylint: pyenvinstall
$(call cmd,pylint,\
searx/preferences.py \
diff --cc utils/makefile.python
index 2e488bf2b,590bbdb46..49944442e
--- a/utils/makefile.python
+++ b/utils/makefile.python
@@@ -8,13 -8,16 +8,16 @@@ export PYTHONPATH := $(SITE_PYTHON):$$P
export PY_ENV PYDIST PYBUILD
# folder where the python distribution takes place
-PYDIST ?= ./py_dist
+PYDIST = ./$(LXC_ENV_FOLDER)dist
# folder where the python intermediate build files take place
-PYBUILD ?= ./py_build
+PYBUILD = ./$(LXC_ENV_FOLDER)build
# python version to use
- PY =3
- PYTHON = python$(PY)
- PIP = pip$(PY)
+ PY ?=3
+ # $(PYTHON) points to the python interpreter from the OS! The python from the
+ # OS is needed e.g. to create a virtualenv. For tasks inside the virtualenv the
+ # interpeter from '$(PY_ENV_BIN)/python' is used.
+ PYTHON ?= python$(PY)
+ PIP ?= pip$(PY)
PIP_INST ?= --user
# https://www.python.org/dev/peps/pep-0508/#extras
@@@ -27,8 -30,8 +30,8 @@@ PYLINT_RC ?= .pylintr
TEST_FOLDER ?= ./tests
TEST ?= .
- VTENV_OPTS ?=
+ VTENV_OPTS = "--no-site-packages"
-PY_ENV = ./local/py$(PY)
+PY_ENV = ./$(LXC_ENV_FOLDER)local/py$(PY)
PY_ENV_BIN = $(PY_ENV)/bin
PY_ENV_ACT = . $(PY_ENV_BIN)/activate