From 3d210b79af413e256a792a60c4cd6a1d12514695 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Tue, 24 Jul 2007 02:14:58 +0000 Subject: [PATCH] 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) --- classes/distutils.bbclass | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/classes/distutils.bbclass b/classes/distutils.bbclass index a7efad2e63..c9592bd666 100644 --- a/classes/distutils.bbclass +++ b/classes/distutils.bbclass @@ -1,9 +1,18 @@ 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() { -- 2.39.5