diff options
| author | Alexandru Ardelean <aa@ocedo.com> | 2014-12-09 12:42:21 +0200 |
|---|---|---|
| committer | Alexandru Ardelean <aa@ocedo.com> | 2014-12-09 12:42:36 +0200 |
| commit | 97d7cff5d11ebb256da30c2fbec7a6cde0aa63ec (patch) | |
| tree | d406791f6bee458964f9b37f5ee50ed1dd66b07f /lang/python/files | |
| parent | 44180b642916f6a6ef6c267c7d7c95567266e7ea (diff) | |
python: add $(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR) to PYTHONPATH
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/files')
| -rw-r--r-- | lang/python/files/python-package.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk index b9349f3c1..3a71d09b4 100644 --- a/lang/python/files/python-package.mk +++ b/lang/python/files/python-package.mk @@ -21,6 +21,7 @@ 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) +PYTHONPATH+=:$(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR) define HostPython ( export PYTHONPATH="$(PYTHONPATH)"; \ export PYTHONOPTIMIZE=""; \ @@ -79,6 +80,7 @@ endef # $(2) => additional arguments to setup.py # $(3) => additional variables define Build/Compile/PyMod + $(INSTALL_DIR) $(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR) $(call HostPython, \ cd $(PKG_BUILD_DIR)/$(strip $(1)); \ CC="$(TARGET_CC)" \ |
