RoamUniverse / pyv8

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

Can't install for python2.5 #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
r356:

onur@onur-vmdesktop:~/linuxdev/pyv8$ python setup.py build
setup.py:250: Warning: 'with' will become a reserved keyword in Python 2.6
  File "setup.py", line 250
    with open(scons, 'r') as f:
            ^
SyntaxError: invalid syntax

This can be easily avoided by replacing "with" statement in setup.py (see 
attachment)
But additional information on how to install boost-python for 2.5 instead of 
2.6 will be appreciated, because even if you patch setup.py and install for 
python2.5 it ends up to:

ImportError: /usr/lib/libboost_python-py26.so.1.40.0: undefined symbol: 
PyUnicodeUCS4_FromEncodedObject

(please note that this issue is different from the other one I opened)

Original issue reported on code.google.com by on.cel...@gmail.com on 21 Mar 2011 at 11:06

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by flier...@gmail.com on 22 Mar 2011 at 2:17

GoogleCodeExporter commented 9 years ago
added a import to use 'with' in Python 2.5, please verify it with SVN trunk 
code after r362

from __future__ import with_statement

Original comment by flier...@gmail.com on 6 Apr 2011 at 4:52