summaryrefslogtreecommitdiff
path: root/classes/distutils.bbclass
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-07-24 02:14:58 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-07-24 02:14:58 +0000
commit3d210b79af413e256a792a60c4cd6a1d12514695 (patch)
tree8a9f3c34b76d4baba39bee3f668ff2bd06d233c7 /classes/distutils.bbclass
parentf88d479e00263b6999033ff0d0925304cf65538c (diff)
classes/distutils.bbclass:
* split distutils extension building into two parts * specify python-specific include directory during build_ext * add function to stage headers (NOTE: explicity-called, not implicitly)
Diffstat (limited to 'classes/distutils.bbclass')
-rw-r--r--classes/distutils.bbclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/classes/distutils.bbclass b/classes/distutils.bbclass
index a7efad2e63..c9592bd666 100644
--- a/classes/distutils.bbclass
+++ b/classes/distutils.bbclass
@@ -2,8 +2,17 @@ inherit distutils-base
distutils_do_compile() {
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
+ ${STAGING_BINDIR_NATIVE}/python setup.py build_ext --include-dirs=${STAGING_INCDIR}/${PYTHON_DIR} || \
+ oefatal "python setup.py build_ext execution failed."
+ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
${STAGING_BINDIR_NATIVE}/python setup.py build || \
- oefatal "python setup.py build execution failed."
+ oefatal "python setup.py build_ext execution failed."
+}
+
+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."
}
distutils_do_install() {