[Python-Dev] Can Python Be Built Without Distutils
Gregory P. Smith
greg at krypto.org
Sat Jan 31 00:26:08 CET 2015
On Sun Jan 25 2015 at 7:08:53 AM Antoine Pitrou <solipsis at pitrou.net> wrote:
> On Sun, 25 Jan 2015 05:22:48 +0000
> "Gregory P. Smith" <greg at krypto.org> wrote:
> > Why doesn't our Makefile supply that flag with the make parallelism level
> > in the sharedmods step?
>
> If I run "make -j4" here, it works (on the default branch).
>
Thanks, glad to see that this was added! :)
This looks like a feature that was added in 3.5. Rather than passing the
flag to setup.py from the Makefile (where I had been looking for it),
setup.py looks at the MAKEFLAGS environment variable and turns on
distutils.common.build_ext's parallel flag if "-j" is found in that. By
default it will then do a parallel build using os.cpu_count() number of
tasks.
-gps
>
> Regards
>
> Antoine.
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/
> greg%40krypto.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150130/9c3f1bef/attachment.html>
More information about the Python-Dev
mailing list