doloopwhile/PyExecJS — Issue #2: Invalid syntax error using easy_install
Author: christopherliu
Created: 2012-01-29 02:30:30+00:00
State: open

Python 2.7 has support for set comprehensions, which I believe is breaking Python 2.6 support for PyExecJS.

:~# easy_install PyExecJS
/usr/lib/python2.6/dist-packages/setuptools/package_index.py:156: UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages)
Environment.__init__(self,*args,**kw)

Best match: PyExecJS 1.0.1
Downloading http://pypi.python.org/packages/source/P/PyExecJS/PyExecJS-1.0.1.zip#md5=9d7b4d6d5b3a43bd76f3754d7031a71c
Processing PyExecJS-1.0.1.zip
Running PyExecJS-1.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-iet2Gt/PyExecJS-1.0.1/egg-dist-tmp-028w8Y
Traceback (most recent call last):
...
File "setup.py", line 11, in
File "/tmp/easy_install-iet2Gt/PyExecJS-1.0.1/execjs/__init__.py", line 78
return {name:runtime for name, runtime in _runtimes.items() if runtime.is_available()}
^
SyntaxError: invalid syntax