<span class="gI">What would be an almost automated way to develop for both python 2.x and 3.x?<br><br>2to3 apparently can only output a diff or write directly on the file (with -w), but why doesn't it output the resulting file for 3.x instead?<br>
<br>So for a single python file I tried a makefile like:<br><br>Makefile:<br>all: empathy.py<br>    cp empathy.py empathy3.py<br>    2to3 -w empathy3.py<br><br>But maybe there's a better way using python tools...<br><br>
Then after that how do I test the various versions with the various python versions in a portable way?<br><br>I could just have a bash script that calls<br><br>python2 empathy.py<br>python3 empathy3.py<br><br>but it's probably not very portable..<br>
<br><br></span>