Lisandro Dalcin wrote:
> On Fri, Apr 24, 2009 at 2:58 PM, Stefan Behnel wrote:
>> I just managed to integrate the 2to3 tool into Cython's build, so that the
>> sources get translated to Py3 on install.
> 
> Does 2to3 run under Py3?

It runs /only/ on Py3.


> I'm thinking about an import hook to make runtests use it in Py3 ...

You could do what setup.py currently does: use distutils' build_py_2to3 to
transform the sources so that they end up in the build/... directory (maybe
you can retarget that), and then simply prepend that to sys.path before you
import Cython. That also works incrementally, so it will only work on
sources with modifications on later calls.

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to