upiterbarg / mpmath

Automatically exported from code.google.com/p/mpmath
Other
0 stars 0 forks source link

SyntaxError while byte-compiling mpmath 0.17 source files #209

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
when preparing the debian package for 0.17, and so running "python setup.py 
install" some files throw SyntaxError at byte-compilation time:

$ python2.7 setup.py install --root=debian/python-mpmath --install-layout=deb;
running install
running build
running build_py
running install_lib
byte-compiling 
debian/python-mpmath/usr/lib/python2.7/dist-packages/mpmath/libmp/exec_py3.py 
to exec_py3.pyc
SyntaxError: ('invalid syntax', 
('/usr/lib/python2.7/dist-packages/mpmath/libmp/exec_py3.py', 1, 12, 'exec_ = 
exec\n'))

byte-compiling 
debian/python-mpmath/usr/lib/python2.7/dist-packages/mpmath/tests/extratest_gamm
a.py to extratest_gamma.pyc
SyntaxError: ('invalid syntax', 
('/usr/lib/python2.7/dist-packages/mpmath/tests/extratest_gamma.py', 50, 35, '  
      print("%s ok;" % name, end=\' \')\n'))

byte-compiling 
debian/python-mpmath/usr/lib/python2.7/dist-packages/mpmath/tests/torture.py to 
torture.pyc
SyntaxError: ('invalid syntax', 
('/usr/lib/python2.7/dist-packages/mpmath/tests/torture.py', 80, 27, '          
  print(".", end=\' \')\n'))

running install_egg_info

---

$ python setup.py install --root=debian/python-mpmath --install-layout=deb;
running install
running build
running build_py
running install_lib
byte-compiling 
debian/python-mpmath/usr/lib/python2.6/dist-packages/mpmath/libmp/exec_py3.py 
to exec_py3.pyc
SyntaxError: ('invalid syntax', 
('/usr/lib/python2.6/dist-packages/mpmath/libmp/exec_py3.py', 1, 12, 'exec_ = 
exec\n'))

byte-compiling 
debian/python-mpmath/usr/lib/python2.6/dist-packages/mpmath/tests/extratest_gamm
a.py to extratest_gamma.pyc
SyntaxError: ('invalid syntax', 
('/usr/lib/python2.6/dist-packages/mpmath/tests/extratest_gamma.py', 50, 35, '  
      print("%s ok;" % name, end=\' \')\n'))

byte-compiling 
debian/python-mpmath/usr/lib/python2.6/dist-packages/mpmath/tests/torture.py to 
torture.pyc
SyntaxError: ('invalid syntax', 
('/usr/lib/python2.6/dist-packages/mpmath/tests/torture.py', 80, 27, '          
  print(".", end=\' \')\n'))

running install_egg_info

Regards,
Sandro

Original issue reported on code.google.com by matrixhasu on 25 Apr 2011 at 3:18

GoogleCodeExporter commented 9 years ago
The one with exec_py3 is basically the same as issue 204.

The other two have been fixed already, I think.

Original comment by fredrik....@gmail.com on 25 Apr 2011 at 4:49