[Michael Hudson-Doyle, 2017-12-19] > > I want to create a package (pyraf, #711038) for both Python2 and > > Python3. While the package itself is still not Python 3 compatible, > > upstream says that running through 2to3 will make it; however the > > resulting code is not Python 2 compatible anymore. > > > > Is there a way to instruct pybuild to run the Python 3 code through > > 2to3? > > python-urwid does this, by passing use_2to3 to the distutils setup() > function, I guess you could patch it to do the same.
if you need 2to3 for tests as well, see: https://wiki.debian.org/Python/Pybuild#line-148 -- GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645