[Buildroot] [PATCHv1 15/26] python3: provide a PYTHON3_PATH

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Feb 13 20:49:04 UTC 2014


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 at free-electrons.com>
---
 package/python3/python3.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index 232862a..8bf9518 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -156,5 +156,8 @@ HOST_PYTHON3_POST_INSTALL_HOOKS += \
 	HOST_PYTHON3_INSTALL_SYMLINK \
 	HOST_PYTHON3_INSTALL_CONFIG_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))
-- 
1.8.3.2




More information about the buildroot mailing list