diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-01-18 12:11:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-20 21:37:00 +0000 |
commit | 943f80f2aa55b196d5881f4b639f3645a78ab648 (patch) | |
tree | 83ccf67e61162a41529dc6b305f180dafbc37b82 /meta/classes | |
parent | 7cb39ad37fb9f2beba9e5985fd391c1be9b0c08c (diff) | |
download | poky-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')
-rw-r--r-- | meta/classes/python-dir.bbclass | 2 |
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 @@ | |||
1 | PYTHON_DIR = "python${PYTHON_BASEVERSION}" | ||
2 | PYTHON_SITEPACKAGES_DIR = "${libdir}/${PYTHON_DIR}/site-packages" | ||