]> code.ossystems Code Review - openembedded-core.git/commitdiff
distutils: Introduce PYTHON_ABI variable
authorKhem Raj <raj.khem@gmail.com>
Sat, 16 Mar 2013 21:14:32 +0000 (14:14 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 Feb 2014 22:34:32 +0000 (22:34 +0000)
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@gmail.com>
meta/classes/distutils3-base.bbclass
meta/classes/distutils3-native-base.bbclass
meta/classes/python-dir.bbclass

index 82ab6a3d1c7527a17403d67e0dada8b25bebc45b..d4d25dccb932e345a4ae5813793f58e421f06ed3 100644 (file)
@@ -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
 
index b4a333f4d449e34693631e921798827e346fb007..ed3fe5458722a503d39542eb78c8d21d8afdfa27 100644 (file)
@@ -1,3 +1,4 @@
 PYTHON_BASEVERSION = "3.3"
+PYTHON_ABI = "m"
 
 inherit distutils-native-base
index b4b5ab0eab93106cd006fcde3c7892510b47c36d..ebfa4b30f65a63be9bd290e00bbfce26f2ef21e0 100644 (file)
@@ -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"