diff mbox

[v2,09/20] python3: provide a PYTHON3_PATH

Message ID 1392756013-27757-10-git-send-email-thomas.petazzoni@free-electrons.com
State Accepted
Headers show

Commit Message

Thomas Petazzoni Feb. 18, 2014, 8:40 p.m. UTC
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>
---
 package/python3/python3.mk | 3 +++
 1 file changed, 3 insertions(+)

Comments

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

 > 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>

Committed to next, thanks.

This btw didn't cleanly apply with git am.
Thomas Petazzoni Feb. 18, 2014, 10:33 p.m. UTC | #2
Dear Peter Korsgaard,

On Tue, 18 Feb 2014 23:29:55 +0100, Peter Korsgaard wrote:
> >>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> 
>  > 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>
> 
> Committed to next, thanks.
> 
> This btw didn't cleanly apply with git am.

Most likely due to PATCH 06/20 not being applied, since the changes are
close. I did test the removal of PATCH 06/20 by doing an interactive
rebase, so the result might be slightly different than with git am.

Thomas
diff mbox

Patch

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))