From 9e639dbf87f501a77f77a5afc059f039c2b7ca93 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Tue, 9 Dec 2014 14:17:55 +0200 Subject: [PATCH] python3: add $(PKG_INSTALL_DIR)/$(PYTHON3_PKG_DIR) to PYTHON3PATH Signed-off-by: Alexandru Ardelean --- lang/python3/files/python3-package.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/python3/files/python3-package.mk b/lang/python3/files/python3-package.mk index a345c81244..9ab2da9e94 100644 --- a/lang/python3/files/python3-package.mk +++ b/lang/python3/files/python3-package.mk @@ -20,7 +20,8 @@ PYTHON3:=python$(PYTHON3_VERSION) HOST_PYTHON3_LIB_DIR:=$(STAGING_DIR_HOST)/lib/python$(PYTHON3_VERSION) HOST_PYTHON3_BIN:=$(STAGING_DIR_HOST)/bin/python3 -PYTHON3PATH="$(PYTHON3_LIB_DIR):$(STAGING_DIR)/$(PYTHON3_PKG_DIR)" +PYTHON3PATH:=$(PYTHON3_LIB_DIR):$(STAGING_DIR)/$(PYTHON3_PKG_DIR) +PYTHON3PATH+=:$(PKG_INSTALL_DIR)/$(PYTHON3_PKG_DIR) define HostPython3 ( export PYTHONPATH="$(PYTHON3PATH)"; \ export PYTHONOPTIMIZE=""; \ @@ -79,6 +80,7 @@ endef # $(2) => additional arguments to setup.py # $(3) => additional variables define Build/Compile/Py3Mod + $(INSTALL_DIR) $(PKG_INSTALL_DIR)/$(PYTHON3_PKG_DIR) $(call HostPython3, \ cd $(PKG_BUILD_DIR)/$(strip $(1)); \ CC="$(TARGET_CC)" \ -- 2.30.2