[Python-porting] Script for automatic 2to3-ing during develooment?

Lennart Regebro regebro at gmail.com
Thu Feb 19 00:29:44 CET 2009


On Wed, Feb 18, 2009 at 22:19, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> Lennart Regebro wrote:
>> When porting you constantly need two copies of the code, one that has
>> been 2to3'd and one not. Before I start writing a script that syncs
>> the two and runs 2to3 on the updates scripts I thought I better check
>> if somebody else already have done this.
>
> In distutils' build_py command, there is support for running 2to3 at
> installation time.

Yeah, but I don't want to *install* it. I want to run the tests under
Python 3. :) Maybe I can run a command that installs it into a
specific prefix, and then runs the tests from there. Hmmm.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64


More information about the Python-porting mailing list