When compiling SymPy from source code,

I got this error:

byte-compiling /usr/local/lib/python2.7/dist-packages/sympy/mpmath/libmp/
exec_py3.py to exec_py3.pyc
  File 
"/usr/local/lib/python2.7/dist-packages/sympy/mpmath/libmp/exec_py3.py",line 
1
    exec_ = exec
               ^
SyntaxError: invalid syntax

So, I found this:
http://code.google.com/p/mpmath/issues/detail?id=204

I made a patch for it. 



-- 
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.
>From aa1c87ca345e90f7b717b81760504a64d87a5f14 Mon Sep 17 00:00:00 2001
From: rajaths589 <[email protected]>
Date: Tue, 4 Feb 2014 18:19:03 +0530
Subject: [PATCH] Fix libMP compile issue: exec problem

---
 sympy/mpmath/libmp/exec_py3.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sympy/mpmath/libmp/exec_py3.py b/sympy/mpmath/libmp/exec_py3.py
index 6b65ae0..db2dd70 100644
--- a/sympy/mpmath/libmp/exec_py3.py
+++ b/sympy/mpmath/libmp/exec_py3.py
@@ -1 +1,2 @@
-exec_ = exec
+#changed it according to: http://code.google.com/p/mpmath/issues/detail?id=204
+exec_ = eval('exec')
-- 
1.8.1.2

Reply via email to