make, scripts: Now excplicitly calling python2 executable instead of python

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-01-02 13:12:00 +00:00
commit e68d4eb83b
11 changed files with 23 additions and 16 deletions

View file

@ -1,11 +1,11 @@
ENV_PYTHONPATH := $(PYTHONPATH)
PYTHON ?= python
PYTHON ?= python2
#PYTHON = python3
ifneq ($(DEVELOPMENT),true)
PY_SITE_PACKAGES_PATH = $(shell $(PYTHON) -c "import site; print site.getsitepackages()[0]")
else
PY_SITE_PACKAGES_PATH = $(PREFIX)/python/site-packages
PY_SITE_PACKAGES_PATH = $(PREFIX)/python2/site-packages
endif
PY_PREREQ_BUILD ?= $(shell $(proj_query_cmd) pkg-requires --subsections jw -d ' ' -p --no-version build $(PROJECT))