[Numpy-discussion] Making a 2to3 distutils command ?
Tue Mar 30 08:18:26 CDT 2010
On Tue, Mar 30, 2010 at 1:09 AM, Pauli Virtanen <email@example.com> wrote:
> 2010/3/30 David Cournapeau <firstname.lastname@example.org>:
>> Currently, when building numpy with python 3, the 2to3 conversion
>> happens before calling any distutils command. Was there a reason for
>> doing it as it is done now ?
> This allowed 2to3 to also port the various setup*.py files and
> numpy.distutils, and implementing it this way required the minimum
> amount of work and understanding of distutils -- you need to force it
> to proceed with the build using the set of output files from 2to3.
>> I would like to make a proper numpy.distutils command for it, so that it
>> can be more finely controlled (in particular, using the -j option). It
>> would also avoid duplication in scipy.
> Are you sure you want to mix distutils in this? Wouldn't it only
> obscure how things work?
> If the aim is in making the 2to3 processing reusable, I'd rather
> simply move tools/py3tool.py under numpy.distutils (+ perhaps do some
> cleanups), and otherwise keep it completely separate from distutils.
> It could be nice to have the 2to3 conversion parallelizable, but there
> are probably simple ways to do it without mixing distutils in.
Out of curiosity, is there something wrong with the support for 2to3
that already exists within distutils? (Other than it just being
Graduate Research Assistant
School of Meteorology
University of Oklahoma
More information about the NumPy-Discussion