summaryrefslogtreecommitdiff
path: root/classes/distutils.bbclass
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-08-20 20:37:01 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-08-20 20:37:01 +0000
commit3511d4c1ba15270dbfd6ee5455273fa70850aa18 (patch)
treeb96c86bca7eca6c0446e663ed36f183f9c320747 /classes/distutils.bbclass
parent6e9c45c2c4f8f33aec7cda649c3e0236075a0ced (diff)
classes/distutils.bbclass: add a staging task (to be called explicitly)
Diffstat (limited to 'classes/distutils.bbclass')
-rw-r--r--classes/distutils.bbclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/classes/distutils.bbclass b/classes/distutils.bbclass
index d23c2a3b2e..9f699bc7f0 100644
--- a/classes/distutils.bbclass
+++ b/classes/distutils.bbclass
@@ -9,7 +9,14 @@ distutils_do_compile() {
distutils_stage_headers() {
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
${STAGING_BINDIR_NATIVE}/python setup.py install_headers --install-dir=${STAGING_INCDIR}/${PYTHON_DIR} || \
- oefatal "python setup.py install execution failed."
+ oefatal "python setup.py install_headers execution failed."
+}
+
+distutils_stage_all() {
+ PYTHONPATH=${STAGING_INCDIR}/../${PYTHON_DIR}/site-packages \
+ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
+ ${STAGING_BINDIR_NATIVE}/python setup.py install --prefix=${STAGING_INCDIR}/.. --install-data=${STAGING_INCDIR}/../share || \
+ oefatal "python setup.py install (stage) execution failed."
}
distutils_do_install() {