[OE-core] [PATCH] distutils: pass along parallel make flags to setup.py build

Ross Burton ross.burton at intel.com
Wed Oct 23 10:56:12 UTC 2019


On 23/10/2019 00:59, Nick Owens wrote:
> 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.

Does distutils *only* understand -j?  It's not unusual to set 
PARALLEL_MAKE to something like '-j10 -l5' to factor in the load average.

If distutils doesn't handle -l then it's safer to use a function in 
oe.utils instead:

... ${@oe.utils.parallel_make_argument(d, "-j %d")} ...

Ross


More information about the Openembedded-core mailing list