diff mbox series

distutils3: pass build arguments when doing a clean

Message ID 20180709104903.24496-1-ross.burton@intel.com
State Accepted
Commit f9324af88a99eca28b160fa31aa4516fd397e44b
Headers show
Series distutils3: pass build arguments when doing a clean | expand

Commit Message

Ross Burton July 9, 2018, 10:49 a.m. UTC
We should pass the build arguments to setup.py when doing a clean, because
sometimes the arguments are required for setup.py get started.

Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/classes/distutils3.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.11.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/classes/distutils3.bbclass b/meta/classes/distutils3.bbclass
index 99ad64d287d..d4b92a3bb26 100644
--- a/meta/classes/distutils3.bbclass
+++ b/meta/classes/distutils3.bbclass
@@ -10,7 +10,7 @@  DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \
 
 distutils3_do_configure() {
 	if [ "${CLEANBROKEN}" != "1" ] ; then
-		${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py clean
+		${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py clean ${DISTUTILS_BUILD_ARGS}
 	fi
 }