From 8f160abad51b6eba620d6ddaf3a1ebc7ee1bf2da Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Sat, 9 Aug 2008 19:39:42 +0000 Subject: distutils.bbclass: allow specifying arguments to the build command --- classes/distutils.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/distutils.bbclass b/classes/distutils.bbclass index fa34565eaf..a35ca27bd4 100644 --- a/classes/distutils.bbclass +++ b/classes/distutils.bbclass @@ -1,5 +1,6 @@ inherit distutils-base +DISTUTILS_BUILD_ARGS ?= "" DISTUTILS_STAGE_HEADERS_ARGS ?= "--install-dir=${STAGING_INCDIR}/${PYTHON_DIR}" DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${layout_prefix} \ --install-data=${STAGING_DATADIR}" @@ -8,7 +9,7 @@ DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ distutils_do_compile() { BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ - ${STAGING_BINDIR_NATIVE}/python setup.py build || \ + ${STAGING_BINDIR_NATIVE}/python setup.py build ${DISTUTILS_BUILD_ARGS} || \ oefatal "python setup.py build_ext execution failed." } -- cgit v1.2.3