summaryrefslogtreecommitdiffstats
path: root/package/python3
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-02-18 21:40:02 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-02-18 23:29:34 +0100
commiteb7667bf41d4ebb8a3de3c6bebdaadfa65ec775c (patch)
tree10bb02291155ea2065be1aaaa9d8d5b1d6c50ec4 /package/python3
parent0d327c267a57e3a75b10becde772addb7fc49297 (diff)
downloadbuildroot-eb7667bf41d4ebb8a3de3c6bebdaadfa65ec775c.tar.gz
buildroot-eb7667bf41d4ebb8a3de3c6bebdaadfa65ec775c.zip
python3: provide a PYTHON3_PATH
The Python package infrastructure will need the Python 3 package to provide a PYTHON3_PATH environment variable in order to build third-party Python modules. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/python3')
-rw-r--r--package/python3/python3.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index ad9b989095..1bf85004d0 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -147,5 +147,8 @@ endef
HOST_PYTHON3_POST_INSTALL_HOOKS += HOST_PYTHON3_INSTALL_SYMLINK
+# Provided to other packages
+PYTHON3_PATH = $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/sysconfigdata/:$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))
OpenPOWER on IntegriCloud