Comment #3 on issue 2482 by asmeurer: Stop bundling mpmath
http://code.google.com/p/sympy/issues/detail?id=2482
Regarding problems with 2to3, I was telling Vladimir that we might want to
just write our own ./bin/2to3 tool. This could have some advantages:
- You wouldn't have to add all the command line arguments, like you would
with regular 2to3. In other words, ./bin/2to3 would automatically know to
convert the source in sympy to Python 3 source in sympy-py3k (or whatever
we call it).
- It would just skip mpmath.
- It could work like ./bin/2to3 sympy/core, and it would just convert the
core.
The source code of the 2to3 command line tool is incredibly simple. I have
pasted it in its entirety below:
#!/sw/bin/python3.2
import sys
from lib2to3.main import main
sys.exit(main("lib2to3.fixes"))
Yep, that's it. All the magic is being done in lib2to3, so I really don't
see any problems with having a custom tool that calls lib2to3 as far as "no
forking" is concerned. It really appears that 2to3 and lib2to3 were
written to be extensible in this very way.
Maybe this should be discussed over on issue 1262, or on a new issue, but I
just wanted to point out that this really shouldn't be an argument for
externalizing mpmath.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.