diff mbox

[PATCHv1,02/26] pkg-python: use the newly defined PYTHON_PATH variable

Message ID 1392324555-29246-3-git-send-email-thomas.petazzoni@free-electrons.com
State Accepted
Commit fa50b8eee17600d328ad661d17252c7f7cc3dac4
Headers show

Commit Message

Thomas Petazzoni Feb. 13, 2014, 8:48 p.m. UTC
Now that the Python package exposes its PYTHON_PATH variable, we can
use it in the package infrastructure. This prepares both the upcoming
bump of Python 2.x, and the introduction of Python 3 support in the
Python package infrastructure.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/pkg-python.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Peter Korsgaard Feb. 14, 2014, 8:55 p.m. UTC | #1
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 > Now that the Python package exposes its PYTHON_PATH variable, we can
 > use it in the package infrastructure. This prepares both the upcoming
 > bump of Python 2.x, and the introduction of Python 3 support in the
 > Python package infrastructure.

 > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Committed to next, thanks.
diff mbox

Patch

diff --git a/package/pkg-python.mk b/package/pkg-python.mk
index 9b3c97a..2153534 100644
--- a/package/pkg-python.mk
+++ b/package/pkg-python.mk
@@ -48,7 +48,7 @@  HOST_PKG_PYTHON_DISTUTILS_INSTALL_OPT = \
 # Target setuptools-based packages
 PKG_PYTHON_SETUPTOOLS_ENV = \
 	PATH="$(TARGET_PATH)" \
-	PYTHONPATH="$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages" \
+	PYTHONPATH="$(PYTHON_PATH)" \
 	PYTHONXCPREFIX="$(STAGING_DIR)/usr/" \
 	CROSS_COMPILING=yes \
 	_python_sysroot=$(STAGING_DIR) \