For anyone that's interested, I have a WIP branch up [1] that has supports both Python 2 and 3 from a single codebase. All the tests and doctests are passing, but there are a couple things that still need to be worked out before it would be ready to go.
Sean [1] https://github.com/sympy/sympy/pull/2318 On Mon, Jul 8, 2013 at 12:28 PM, Aaron Meurer <[email protected]> wrote: > > > > On Mon, Jul 8, 2013 at 11:41 AM, Ondřej Čertík <[email protected]>wrote: > >> On Mon, Jul 8, 2013 at 10:07 AM, Aaron Meurer <[email protected]> wrote: >> > From my understanding, it's easiest to do this if we don't support >> Python >> > 3.2, and even easier if we don't support Python 2.6 (but we should >> continue >> > to support 2.6 for a while). >> > >> > I am -1 to this, just because we already have 2to3 working, and so we >> should >> > not waste our time fixing what isn't broken. >> >> >> It's not a big deal now, so we can revisit this later. I posted it >> here to think about this. >> >> That being said, I can see many things that are broken, for example: >> >> * we need to ship the same tarball for Python 3.2 and 3.3 (and keep >> adding tarballs for higher version of Python) so that pip installs it >> >> * that we cannot ship just one tarball for all Python versions >> >> * that installing sympy (from git) into Python 3 takes a long time >> >> * If you want to hack using Python 3 (that implies in git), you can't. >> The only way is to hack in Python 2.7 and keep translating to Python >> 3. In fact the translation takes such a long time on my laptop, that I >> don't use Python 3 with sympy and git. It's nice to use the released >> tarball in Python 3 though, that works great. >> > > It's worth pointing out that if you re-run use2to3, it only rebuilds the > files that have changed. While this may often be a lot, especially if you > don't run it very often, or if you checkout an old commit, if you are just > hacking around, it isn't much. You could even add a git hook that does it > automatically every time you checkout a commit. > > I agree it could be faster, though. 2to3 maybe should have been written in > C. > > Aaron Meurer > > >> Ondrej >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sympy" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/sympy. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
