]> code.ossystems Code Review - openembedded-core.git/commitdiff
python-dir bbclass: import from OE
authorKoen Kooi <koen@dominion.thruhere.net>
Tue, 18 Jan 2011 11:11:36 +0000 (12:11 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Jan 2011 21:37:00 +0000 (21:37 +0000)
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 <koen@dominion.thruhere.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/python-dir.bbclass [new file with mode: 0644]

diff --git a/meta/classes/python-dir.bbclass b/meta/classes/python-dir.bbclass
new file mode 100644 (file)
index 0000000..a072a93
--- /dev/null
@@ -0,0 +1,2 @@
+PYTHON_DIR = "python${PYTHON_BASEVERSION}"
+PYTHON_SITEPACKAGES_DIR = "${libdir}/${PYTHON_DIR}/site-packages"