python3: add $(PKG_INSTALL_DIR)/$(PYTHON3_PKG_DIR) to PYTHON3PATH 620/head
authorAlexandru Ardelean <aa@ocedo.com>
Tue, 9 Dec 2014 12:17:55 +0000 (14:17 +0200)
committerAlexandru Ardelean <aa@ocedo.com>
Tue, 9 Dec 2014 12:17:56 +0000 (14:17 +0200)
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python3/files/python3-package.mk

index a345c8124420f528ed7f8a71bec05babd4f381f1..9ab2da9e9406ef5047b557bb37d184855c7f7206 100644 (file)
@@ -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)" \