summaryrefslogtreecommitdiffstats
path: root/meta/classes/python-dir.bbclass
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-01-18 12:11:36 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-20 21:37:00 +0000
commit943f80f2aa55b196d5881f4b639f3645a78ab648 (patch)
tree83ccf67e61162a41529dc6b305f180dafbc37b82 /meta/classes/python-dir.bbclass
parent7cb39ad37fb9f2beba9e5985fd391c1be9b0c08c (diff)
downloadpoky-943f80f2aa55b196d5881f4b639f3645a78ab648.tar.gz
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 <koen@dominion.thruhere.net> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/python-dir.bbclass')
-rw-r--r--meta/classes/python-dir.bbclass2
1 files changed, 2 insertions, 0 deletions
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 @@
1PYTHON_DIR = "python${PYTHON_BASEVERSION}"
2PYTHON_SITEPACKAGES_DIR = "${libdir}/${PYTHON_DIR}/site-packages"