All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] distutils: pass along parallel make flags to setup.py build
@ 2019-10-22 23:59 Nick Owens
  2019-10-23 10:56 ` Ross Burton
  2019-10-23 17:59 ` [PATCH v2] " Nick Owens
  0 siblings, 2 replies; 7+ messages in thread
From: Nick Owens @ 2019-10-22 23:59 UTC (permalink / raw)
  To: openembedded-core

parallel builds for native code in python modules was added about 5
years ago. distutils understands '-j N', so just pass along
${PARALLEL_MAKE} to setup.py build.

Signed-off-by: Nick Owens <nick.owens@eero.com>
---
 meta/classes/distutils.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass
index b5c9c2fbbd..d60f7083ef 100644
--- a/meta/classes/distutils.bbclass
+++ b/meta/classes/distutils.bbclass
@@ -23,7 +23,7 @@ distutils_do_compile() {
          NO_FETCH_BUILD=1 \
          STAGING_INCDIR=${STAGING_INCDIR} \
          STAGING_LIBDIR=${STAGING_LIBDIR} \
-         ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py build ${DISTUTILS_BUILD_ARGS} || \
+         ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py build ${PARALLEL_MAKE} ${DISTUTILS_BUILD_ARGS} || \
          bbfatal_log "'${PYTHON_PN} setup.py build ${DISTUTILS_BUILD_ARGS}' execution failed."
 }
 
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-10-28 21:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 23:59 [PATCH] distutils: pass along parallel make flags to setup.py build Nick Owens
2019-10-23 10:56 ` Ross Burton
2019-10-23 17:59 ` [PATCH v2] " Nick Owens
2019-10-23 17:59   ` [PATCH] " Nick Owens
2019-10-24  8:21     ` Richard Purdie
2019-10-24 18:25       ` Nick Owens
2019-10-28 21:31         ` Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.