From 03da683a55582a05154104abf986678f3d578a6c Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Mon, 25 Apr 2016 15:57:59 +0300 Subject: python3-dir.bbclass: add a separate class for Python 3 This is much cleaner than sharing python-dir.bbclass between python 2 and 3 classes, and doing confusing overrides in them. (From OE-Core rev: 3891fcec863602a0ae6d0f3d305ea50a79a205d9) Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- meta/classes/python-dir.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta/classes/python-dir.bbclass') diff --git a/meta/classes/python-dir.bbclass b/meta/classes/python-dir.bbclass index ebfa4b30f6..a11dc350be 100644 --- a/meta/classes/python-dir.bbclass +++ b/meta/classes/python-dir.bbclass @@ -1,5 +1,5 @@ -PYTHON_BASEVERSION ?= "2.7" -PYTHON_ABI ?= "" +PYTHON_BASEVERSION = "2.7" +PYTHON_ABI = "" PYTHON_DIR = "python${PYTHON_BASEVERSION}" -PYTHON_PN = "python${@'' if '${PYTHON_BASEVERSION}'.startswith('2') else '3'}" +PYTHON_PN = "python" PYTHON_SITEPACKAGES_DIR = "${libdir}/${PYTHON_DIR}/site-packages" -- cgit v1.2.3-54-g00ecf