diff mbox

[PATCHv1,01/26] python: expose PYTHON_PATH

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

Commit Message

Thomas Petazzoni Feb. 13, 2014, 8:48 p.m. UTC
As a preparation to make the Python infrastructure support both Python
and Python 3, as well as the bump of Python 2 and 3, we need the
Python package to expose the Python module path in a variable called
PYTHON_PATH. It will be used by the following commits.

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

Comments

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

 > As a preparation to make the Python infrastructure support both Python
 > and Python 3, as well as the bump of Python 2 and 3, we need the
 > Python package to expose the Python module path in a variable called
 > PYTHON_PATH. It will be used by the following commits.

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

Committed to next, thanks.
diff mbox

Patch

diff --git a/package/python/python.mk b/package/python/python.mk
index 6187d66..f2e48c4 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -167,5 +167,8 @@  PYTHON_POST_INSTALL_TARGET_HOOKS += PYTHON_REMOVE_USELESS_FILES
 
 PYTHON_AUTORECONF = YES
 
+# Provided to other packages
+PYTHON_PATH = $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))