tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: python nproc vs MAKE_JOBS issues



* On 2024-11-11 at 12:10 GMT, Thomas Klausner wrote:

On Mon, Nov 11, 2024 at 11:57:11AM +0000, Jonathan Perkin wrote:
I've seen a few similar things to this recently where python modules are
being built with complete disregard to MAKE_JOBS, and instead are just
spawning a thread for each CPU they find.  For example:

This seems to be py-maturin's default, to use one job per CPU.

Do any python folks know what is causing this and are able to fix it?

Try the attached patch.

That doesn't work unfortunately. The "maturin build" command has this flag:

  -j, --jobs <N>                Number of parallel jobs, defaults to # of CPUs

but I don't know how to pass that through the python stuff.

Similar patches would need to be applied to all users of py-maturin.

Hopefully if we can find a fix it can be consolidated into a devel/py-maturin/build.mk or similar.

--
Jonathan Perkin   -   mnx.io   -   pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index