summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2013-03-16 14:14:32 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-02 22:37:39 +0000
commit3f57c714d0d4b9cc68a129c332291c41e6615a9f (patch)
tree03f5321f565b5dd3812f85d9aa3b82bf5f77acad /meta
parent0221af0f4ee9e8bfb8796841bdf806e38bc600c6 (diff)
downloadpoky-3f57c714d0d4b9cc68a129c332291c41e6615a9f.tar.gz
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 (From OE-Core rev: 9a3e4ac4a4eeed64ec80d400130dff3d26daf336) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/distutils3-base.bbclass3
-rw-r--r--meta/classes/distutils3-native-base.bbclass1
-rw-r--r--meta/classes/python-dir.bbclass1
3 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/distutils3-base.bbclass b/meta/classes/distutils3-base.bbclass
index 82ab6a3d1c..d4d25dccb9 100644
--- a/meta/classes/distutils3-base.bbclass
+++ b/meta/classes/distutils3-base.bbclass
@@ -1,5 +1,8 @@
1DEPENDS += "${@["${PYTHON_PN}-native ${PYTHON_PN}", ""][(d.getVar('PACKAGES', True) == '')]}" 1DEPENDS += "${@["${PYTHON_PN}-native ${PYTHON_PN}", ""][(d.getVar('PACKAGES', True) == '')]}"
2RDEPENDS_${PN} += "${@['', '${PYTHON_PN}-core']['${CLASSOVERRIDE}' == 'class-target']}" 2RDEPENDS_${PN} += "${@['', '${PYTHON_PN}-core']['${CLASSOVERRIDE}' == 'class-target']}"
3 3
4PYTHON_BASEVERSION = "3.3"
5PYTHON_ABI = "m"
6
4inherit distutils-common-base python3native 7inherit distutils-common-base python3native
5 8
diff --git a/meta/classes/distutils3-native-base.bbclass b/meta/classes/distutils3-native-base.bbclass
index b4a333f4d4..ed3fe54587 100644
--- a/meta/classes/distutils3-native-base.bbclass
+++ b/meta/classes/distutils3-native-base.bbclass
@@ -1,3 +1,4 @@
1PYTHON_BASEVERSION = "3.3" 1PYTHON_BASEVERSION = "3.3"
2PYTHON_ABI = "m"
2 3
3inherit distutils-native-base 4inherit distutils-native-base
diff --git a/meta/classes/python-dir.bbclass b/meta/classes/python-dir.bbclass
index b4b5ab0eab..ebfa4b30f6 100644
--- a/meta/classes/python-dir.bbclass
+++ b/meta/classes/python-dir.bbclass
@@ -1,4 +1,5 @@
1PYTHON_BASEVERSION ?= "2.7" 1PYTHON_BASEVERSION ?= "2.7"
2PYTHON_ABI ?= ""
2PYTHON_DIR = "python${PYTHON_BASEVERSION}" 3PYTHON_DIR = "python${PYTHON_BASEVERSION}"
3PYTHON_PN = "python${@'' if '${PYTHON_BASEVERSION}'.startswith('2') else '3'}" 4PYTHON_PN = "python${@'' if '${PYTHON_BASEVERSION}'.startswith('2') else '3'}"
4PYTHON_SITEPACKAGES_DIR = "${libdir}/${PYTHON_DIR}/site-packages" 5PYTHON_SITEPACKAGES_DIR = "${libdir}/${PYTHON_DIR}/site-packages"