summaryrefslogtreecommitdiffstats
path: root/package/python/python.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-02-13 21:48:50 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-02-14 21:40:29 +0100
commit64b4fa7b256ff9d1f2bf9a2f7e50fd5c9b9ef8bf (patch)
tree8174a61dd5a162f18c7a70c9aa7624894d75d43d /package/python/python.mk
parentb0b72591d74c1a84b8c1b2e1990a2fe1dfe8c4ab (diff)
downloadbuildroot-64b4fa7b256ff9d1f2bf9a2f7e50fd5c9b9ef8bf.tar.gz
buildroot-64b4fa7b256ff9d1f2bf9a2f7e50fd5c9b9ef8bf.zip
python: expose PYTHON_PATH
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> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/python/python.mk')
-rw-r--r--package/python/python.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/python/python.mk b/package/python/python.mk
index 6187d66e7d..f2e48c4e5d 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))
OpenPOWER on IntegriCloud