Patchwork [CONSOLIDATED,PULL,05/10] python-dir: specify am_cv_python_pythondir & am_cv_python_pyexecdir

login
register
mail settings
Submitter Saul Wold
Date Aug. 11, 2011, 4:29 p.m.
Message ID <23a2a8333105b2dcbde8e74bc3fd88841656980d.1313079549.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/9629/
State New, archived
Headers show

Comments

Saul Wold - Aug. 11, 2011, 4:29 p.m.
From: Kumar Gala <galak@kernel.crashing.org>

autoconf will try and set these to via python.m4:

am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages

However this is problematic as this doesnt respect libdir and where
we've actually set python's site package dir to.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 meta/classes/python-dir.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Kumar Gala - Aug. 11, 2011, 4:33 p.m.
On Aug 11, 2011, at 11:29 AM, Saul Wold wrote:

> From: Kumar Gala <galak@kernel.crashing.org>
> 
> autoconf will try and set these to via python.m4:
> 
> am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
> am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
> 
> However this is problematic as this doesnt respect libdir and where
> we've actually set python's site package dir to.
> 
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
> meta/classes/python-dir.bbclass |    3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)

Drop the python patches, Richard wanted us to patch automake,  I've posted a new set of patches for that.

- k

Patch

diff --git a/meta/classes/python-dir.bbclass b/meta/classes/python-dir.bbclass
index 1ceb929..526b3bf 100644
--- a/meta/classes/python-dir.bbclass
+++ b/meta/classes/python-dir.bbclass
@@ -1,3 +1,6 @@ 
 PYTHON_BASEVERSION ?= "2.6"
 PYTHON_DIR = "python${PYTHON_BASEVERSION}"
 PYTHON_SITEPACKAGES_DIR = "${libdir}/${PYTHON_DIR}/site-packages"
+
+EXTRA_OECONF += "am_cv_python_pythondir=${PYTHON_SITEPACKAGES_DIR}"
+EXTRA_OECONF += "am_cv_python_pyexecdir=${PYTHON_SITEPACKAGES_DIR}"