python: whitespace fix for PYTHONPATH
authorXuefer <xuefer@gmail.com>
Sat, 13 Dec 2014 10:12:03 +0000 (18:12 +0800)
committerAlexandru Ardelean <aa@ocedo.com>
Tue, 6 Jan 2015 08:50:31 +0000 (10:50 +0200)
Seems that using += adds a space in the PYTHONPATH.
Could be some other error, but at least this way
it's sure to not leave any spaces.

Thanks @Xuefer.

Signed-off-by: Xuefer Tinys <xuefer@gmail.com>
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/files/python-package.mk

index 3a71d09b4ac1439db4ca748f443b7bf994e45ac1..9a999d4f06769c71ed6f61bef532c724d6d4257d 100644 (file)
@@ -20,8 +20,7 @@ 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)
-PYTHONPATH+=:$(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR)
+PYTHONPATH:=$(PYTHON_LIB_DIR):$(STAGING_DIR)/$(PYTHON_PKG_DIR):$(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR)
 define HostPython
        (       export PYTHONPATH="$(PYTHONPATH)"; \
                export PYTHONOPTIMIZE=""; \