summaryrefslogtreecommitdiffstats
path: root/meta/classes/python-dir.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/python-dir.bbclass
parentf5bc3cfac9545c402b415695c4e0f98ad38fb2b0 (diff)
downloadopenembedded-core-contrib-ae931c2cf9e48e1fb74b4b727dbf668ea880023f.tar.gz
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/python-dir.bbclass')
-rw-r--r--meta/classes/python-dir.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/python-dir.bbclass b/meta/classes/python-dir.bbclass
index 0b6a33c2ed..b4b5ab0eab 100644
--- a/meta/classes/python-dir.bbclass
+++ b/meta/classes/python-dir.bbclass
@@ -1,3 +1,4 @@
PYTHON_BASEVERSION ?= "2.7"
PYTHON_DIR = "python${PYTHON_BASEVERSION}"
+PYTHON_PN = "python${@'' if '${PYTHON_BASEVERSION}'.startswith('2') else '3'}"
PYTHON_SITEPACKAGES_DIR = "${libdir}/${PYTHON_DIR}/site-packages"