From: Koen Kooi Date: Tue, 18 Jan 2011 11:11:36 +0000 (+0100) Subject: python-dir bbclass: import from OE X-Git-Tag: 2011-1~2819 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=943f80f2aa55b196d5881f4b639f3645a78ab648;p=openembedded-core.git python-dir bbclass: import from OE This will be used later on when updating the distutils classes A small deviation from OE is the use of PYTHON_BASEVERSION instead of non-deterministic python code. See https://lists.yoctoproject.org/pipermail/poky/2011-January/002320.html for some background info Signed-off-by: Koen Kooi Signed-off-by: Saul Wold --- diff --git a/meta/classes/python-dir.bbclass b/meta/classes/python-dir.bbclass new file mode 100644 index 0000000000..a072a93877 --- /dev/null +++ b/meta/classes/python-dir.bbclass @@ -0,0 +1,2 @@ +PYTHON_DIR = "python${PYTHON_BASEVERSION}" +PYTHON_SITEPACKAGES_DIR = "${libdir}/${PYTHON_DIR}/site-packages"