summaryrefslogtreecommitdiff
path: root/meta/classes/distutils-base.bbclass
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2013-03-09 22:03:59 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-02 22:34:31 +0000
commitae931c2cf9e48e1fb74b4b727dbf668ea880023f (patch)
treea53870f11283357d744cd06c401e4939dcef7463 /meta/classes/distutils-base.bbclass
parentf5bc3cfac9545c402b415695c4e0f98ad38fb2b0 (diff)
downloadopenembedded-core-ae931c2cf9e48e1fb74b4b727dbf668ea880023f.tar.gz
openembedded-core-ae931c2cf9e48e1fb74b4b727dbf668ea880023f.tar.bz2
openembedded-core-ae931c2cf9e48e1fb74b4b727dbf668ea880023f.zip
classes/distutils: Introduce PYTHON_PN
This is needed to accomodate python3 alongside python2 Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/classes/distutils-base.bbclass')
-rw-r--r--meta/classes/distutils-base.bbclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/classes/distutils-base.bbclass b/meta/classes/distutils-base.bbclass
index 3b43e7629f..aa18e8b292 100644
--- a/meta/classes/distutils-base.bbclass
+++ b/meta/classes/distutils-base.bbclass
@@ -1,5 +1,4 @@
-DEPENDS += "${@["python-native python", ""][(d.getVar('PACKAGES', True) == '')]}"
-RDEPENDS_${PN} += "${@['', 'python-core']['${CLASSOVERRIDE}' == 'class-target']}"
+DEPENDS += "${@["${PYTHON_PN}-native ${PYTHON_PN}", ""][(d.getVar('PACKAGES', True) == '')]}"
+RDEPENDS_${PN} += "${@['', '${PYTHON_PN}-core']['${CLASSOVERRIDE}' == 'class-target']}"
inherit distutils-common-base pythonnative
-