From 242286b80d4db24dd42217b3d9a689bcdcfb020b Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 5 Nov 2014 15:18:05 +0200 Subject: [PATCH] python: add PYTHONPATH var; this allows packages to configure it Signed-off-by: Alexandru Ardelean --- lang/python/files/python-package.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk index 9e48ffc61..3f714d27f 100644 --- a/lang/python/files/python-package.mk +++ b/lang/python/files/python-package.mk @@ -20,8 +20,9 @@ PYTHON:=python$(PYTHON_VERSION) HOST_PYTHON_LIB_DIR:=$(STAGING_DIR_HOST)/lib/python$(PYTHON_VERSION) HOST_PYTHON_BIN:=$(STAGING_DIR_HOST)/bin/python2 +PYTHONPATH:=$(PYTHON_LIB_DIR):$(STAGING_DIR)/$(PYTHON_PKG_DIR) define HostPython - ( export PYTHONPATH="$(PYTHON_LIB_DIR):$(STAGING_DIR)/$(PYTHON_PKG_DIR)"; \ + ( export PYTHONPATH="$(PYTHONPATH)"; \ export PYTHONOPTIMIZE=""; \ export PYTHONDONTWRITEBYTECODE=1; \ $(1) \