[poky] [PATCH v2 1/3] python-dir bbclass: import from OE
Koen Kooi
koen at dominion.thruhere.net
Tue Jan 18 03:11:36 PST 2011
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 at dominion.thruhere.net>
---
meta/classes/python-dir.bbclass | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
create mode 100644 meta/classes/python-dir.bbclass
diff --git a/meta/classes/python-dir.bbclass b/meta/classes/python-dir.bbclass
new file mode 100644
index 0000000..a072a93
--- /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"
--
1.6.6.1
More information about the poky
mailing list