Lennart Regebro kirjoitti:
2009/9/18 Lennart Regebro <[email protected]>:
2. There is now a build_py that will run 2to3 on the code. That's
cool, but there doesn't seem to be a way to enable it. It looks for a
setuptools.use_2to3 attribute to check if it should be used, but I
couldn't see a way of setting that. Passing it in as a parameter to
setup() gives you a warning, that the parameter is unknown.

How should it be done?

OK, seems i can do this with
    import setuptools
    setuptools.run_2to3 = True
This should not be necessary. The run_2to3 keyword argument to setup() is the way to go. I haven't had a good chance to check out Martin's work, but if that option is missing, I'll add it.
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to