[oe-commits] org.oe.dev classes/distutils.bbclass:

mickeyl commit openembedded-commits at lists.openembedded.org
Tue Jul 24 02:43:19 UTC 2007


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)

Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: f2adcf3c705e4b4113f575163769503168305fe5
ViewMTN: http://monotone.openembedded.org/revision.psp?id=f2adcf3c705e4b4113f575163769503168305fe5
Files:
1
classes/distutils.bbclass
Diffs:

#
# mt diff -r2d084f3a7488cc40fa3fe650ccf3bc2f2afb0873 -rf2adcf3c705e4b4113f575163769503168305fe5
#
# 
# 
# patch "classes/distutils.bbclass"
#  from [74db81e2aa502dafb151fa988241ef6d241a4e7c]
#    to [d9fae79d516317cafc4a5fa709c7157df88016a5]
# 
============================================================
--- classes/distutils.bbclass	74db81e2aa502dafb151fa988241ef6d241a4e7c
+++ classes/distutils.bbclass	d9fae79d516317cafc4a5fa709c7157df88016a5
@@ -1,11 +1,20 @@ distutils_do_compile() {
 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() {
         install -d ${D}${libdir}/${PYTHON_DIR}/site-packages
         PYTHONPATH=${D}/${libdir}/${PYTHON_DIR}/site-packages \






More information about the Openembedded-commits mailing list