[Scons-users] build time

Russel Winder russel at winder.org.uk
Sat Jul 7 07:30:55 EDT 2012


On Sat, 2012-07-07 at 12:07 +0200, Brady Johnson wrote:

> What would be cool would be for SCons to be able to use the Python

> multiprocessing module instead of threads. The API is very similar by

> design, so it shouldnt be too difficult to change. Then all available

> CPUs/cores could be used without having to deal with the GIL. And maybe

> this would be too much, but if it were configurable, that would just be

> awesome.

>

> Thoughts, anyone?


This would require setting the SCons Python floor to 2.6 – well it could
be done with 2.5 as there is a backport of multiprocessing to 2.5, but I
think 2.6 would be a better option. The problem is that there are a lot
of 2.4 users out there who are unwilling and/or unable to upgrade.

There are many options.

1. Up the floor anyway and only allow SCons updates to be used by people
runing 2.6 or higher.

2. Do nothing and continue to use 2.4 as the floor.

3. Use the PyPy with STM instead of a GIL.

4. Ensure all actions get spawned via ctypes of some such so they are
not running Python bytecodes and thus not constrained by GIL.

5. Rewrite SCons in Python 3 an make some real progress whilst really
annoying people stuck on Python 2.4 :-)

--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : <http://four.pairlist.net/pipermail/scons-users/attachments/20120707/35ad6df3/attachment.pgp>


More information about the Scons-users mailing list