[Checkins] SVN: zc.buildout/trunk/src/zc/buildout/buildout.py Added Jython support.

Georgy Berdyshev codingmaster at gmail.com
Thu Aug 28 04:21:09 EDT 2008


Christian,

this is a great news!

With regard to the Python 2.4 requirement, we could use subprocess by default.

An improvement over the platform would be in some cases - despite when
the scripts needs to be run by sys.executable and cannot be run by
itself, e.g. the scripts within bin. This won't change too much for
Python anyway.

import os
try:
    os.spawnl(...)
except AttributeError:
    import subprocess
    subprocess.Popen(...)

or with subprocess by default:

try:
   import subprocess
   ...
except ImportError:
   os.spawnl(....)

In many parts of the code there is a lot of difference between the
argument structures that are allowed to be passed to os.spawn and
subprocess.

Georgy

-- 
Georgy Berdyshev

GPG key: 830F68C5
Fingerprint: 0379 ED5A BEE5 65A8 7BD5 31E7 F5B4 1EC7 830F 68C5


More information about the Checkins mailing list