[oe-commits] Khem Raj : distutils: Introduce PYTHON_ABI variable
git at git.openembedded.org
git at git.openembedded.org
Sun Feb 2 22:32:56 UTC 2014
Module: openembedded-core.git
Branch: master
Commit: 9a3e4ac4a4eeed64ec80d400130dff3d26daf336
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9a3e4ac4a4eeed64ec80d400130dff3d26daf336
Author: Khem Raj <raj.khem at gmail.com>
Date: Sat Mar 16 14:14:32 2013 -0700
distutils: Introduce PYTHON_ABI variable
In python3 this has to be taken care of, it defines a variable to
denote ABI currently its at 'm' and it uses this to construct
the directory names for installing the python headers and library
names in sysroot. e.g. it will be something like ../python3.3m/...
We need this information when we are using distutils to cross build
python extentions and want to know the locations of python headers
and libraries install locations
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
meta/classes/distutils3-base.bbclass | 3 +++
meta/classes/distutils3-native-base.bbclass | 1 +
meta/classes/python-dir.bbclass | 1 +
3 files changed, 5 insertions(+)
diff --git a/meta/classes/distutils3-base.bbclass b/meta/classes/distutils3-base.bbclass
index 82ab6a3..d4d25dc 100644
--- a/meta/classes/distutils3-base.bbclass
+++ b/meta/classes/distutils3-base.bbclass
@@ -1,5 +1,8 @@
DEPENDS += "${@["${PYTHON_PN}-native ${PYTHON_PN}", ""][(d.getVar('PACKAGES', True) == '')]}"
RDEPENDS_${PN} += "${@['', '${PYTHON_PN}-core']['${CLASSOVERRIDE}' == 'class-target']}"
+PYTHON_BASEVERSION = "3.3"
+PYTHON_ABI = "m"
+
inherit distutils-common-base python3native
diff --git a/meta/classes/distutils3-native-base.bbclass b/meta/classes/distutils3-native-base.bbclass
index b4a333f..ed3fe54 100644
--- a/meta/classes/distutils3-native-base.bbclass
+++ b/meta/classes/distutils3-native-base.bbclass
@@ -1,3 +1,4 @@
PYTHON_BASEVERSION = "3.3"
+PYTHON_ABI = "m"
inherit distutils-native-base
diff --git a/meta/classes/python-dir.bbclass b/meta/classes/python-dir.bbclass
index b4b5ab0..ebfa4b3 100644
--- a/meta/classes/python-dir.bbclass
+++ b/meta/classes/python-dir.bbclass
@@ -1,4 +1,5 @@
PYTHON_BASEVERSION ?= "2.7"
+PYTHON_ABI ?= ""
PYTHON_DIR = "python${PYTHON_BASEVERSION}"
PYTHON_PN = "python${@'' if '${PYTHON_BASEVERSION}'.startswith('2') else '3'}"
PYTHON_SITEPACKAGES_DIR = "${libdir}/${PYTHON_DIR}/site-packages"
More information about the Openembedded-commits
mailing list