[Distutils] setuptools and use_2to3

2013-11-11 Thread Paul Moore
I'm trying to convert a setup.py to use setuptools (specifically the docutils build, FWIW). The existing setup.py has some custom command stuff to run 2to3 on build. As I understand it, setuptools should do this automatically by using use_2to3=True. So, I've changed the code to just do: setup(

Re: [Distutils] setuptools and use_2to3

2013-11-11 Thread Marius Gedminas
On Mon, Nov 11, 2013 at 04:29:32PM +, Paul Moore wrote: I'm trying to convert a setup.py to use setuptools (specifically the docutils build, FWIW). The existing setup.py has some custom command stuff to run 2to3 on build. Aside: I believe there's consensus now that 2to3 is not the best

Re: [Distutils] setuptools and use_2to3

2013-11-11 Thread Paul Moore
On 11 November 2013 17:26, Marius Gedminas mar...@pov.lt wrote: On Mon, Nov 11, 2013 at 04:29:32PM +, Paul Moore wrote: I'm trying to convert a setup.py to use setuptools (specifically the docutils build, FWIW). The existing setup.py has some custom command stuff to run 2to3 on build.

Re: [Distutils] setuptools and use_2to3

2013-11-11 Thread Lennart Regebro
On Mon, Nov 11, 2013 at 6:26 PM, Marius Gedminas mar...@pov.lt wrote: Aside: I believe there's consensus now that 2to3 is not the best way to support Python 2.x and 3.x. It's not that hard to have a single source tree in a portable subset of Python 2.x and 3.x. See python3porting.com and

Re: [Distutils] setuptools and use_2to3

2013-11-11 Thread Paul Moore
On 11 November 2013 20:45, Lennart Regebro rege...@gmail.com wrote: If 2to3 is being run you'll get quite a lot of fairly obvious output to that effect. So it sounds like it's not. A quick look at bdist_egg seems to indicate that it never runs the build_py step, which is what runs 2to3. So