[Distutils] Comments on Python 3 support for Distribute.

Alex Grönholm alex.gronholm at nextday.fi
Fri Sep 18 15:42:17 CEST 2009

Lennart Regebro kirjoitti:
> 2009/9/18 Lennart Regebro <regebro at gmail.com>:
>> 2. There is now a build_py that will run 2to3 on the code. That's
>> cool, but there doesn't seem to be a way to enable it. It looks for a
>> setuptools.use_2to3 attribute to check if it should be used, but I
>> couldn't see a way of setting that. Passing it in as a parameter to
>> setup() gives you a warning, that the parameter is unknown.
>> How should it be done?
> OK, seems i can do this with
>     import setuptools
>     setuptools.run_2to3 = True
This should not be necessary. The run_2to3 keyword argument to setup() 
is the way to go. I haven't had a good chance to check out Martin's 
work, but if that option is missing, I'll add it.

More information about the Distutils-SIG mailing list