[Distutils] Comments on Python 3 support for Distribute.

Lennart Regebro regebro at gmail.com
Fri Sep 18 15:32:46 CEST 2009


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

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64


More information about the Distutils-SIG mailing list