summaryrefslogtreecommitdiff
path: root/classes/distutils.bbclass
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-12-06 05:09:15 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-12-06 05:09:15 +0000
commitcc596ad564facc002017ab4b0dd3f9c743ab7167 (patch)
treefe3232448d2ff17206a65d5771bd7de49fae215f /classes/distutils.bbclass
parentb2236812ff2407ff9702a0c1e58b94c10ee12b5d (diff)
distutils.bbclass: install python library dir before installing (fix typo)
Diffstat (limited to 'classes/distutils.bbclass')
-rw-r--r--classes/distutils.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/distutils.bbclass b/classes/distutils.bbclass
index 8af10a0c8a..18aee09a26 100644
--- a/classes/distutils.bbclass
+++ b/classes/distutils.bbclass
@@ -13,13 +13,15 @@ distutils_do_compile() {
}
distutils_stage_headers() {
+ install -d ${STAGING_DIR_HOST}${layout_prefix}/lib/${PYTHON_DIR}/site-packages
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
${STAGING_BINDIR_NATIVE}/python setup.py install_headers ${DISTUTILS_STAGE_HEADERS_ARGS} || \
oefatal "python setup.py install_headers execution failed."
}
distutils_stage_all() {
- install -d ${STAGING_DIR_HOST}${layout_prefix}/${PYTHON_DIR}/site-packages
+ install -d ${STAGING_DIR_HOST}${layout_prefix}/lib/${PYTHON_DIR}/site-packages
+ # is this missing a lib below?
PYTHONPATH=${STAGING_DIR_HOST}${layout_prefix}/${PYTHON_DIR}/site-packages \
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
${STAGING_BINDIR_NATIVE}/python setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \
@@ -49,7 +51,7 @@ distutils_do_install() {
done
fi
- rm -f ${D}${libdir}/${PYTHON_DIR}/site-packages/easy-install.pth
+ rm -f ${D}${libdir}/${PYTHON_DIR}/site-packages/easy-install.pth
}
EXPORT_FUNCTIONS do_compile do_install