eseraygun / python-alignment

Native Python library for generic sequence alignment
BSD 3-Clause "New" or "Revised" License
55 stars 14 forks source link

Install fails on Python 2.6 #1

Closed pombredanne closed 10 years ago

pombredanne commented 10 years ago

Eser: The install fails on Python 2.6 9see trace below). This is due to the use of a dict comprehension which is supported in 2.7 and up only. The proposed mini patch fixes this by using a regular dict constructor to the same effect.

$ pip install alignment
Downloading/unpacking alignment
  Downloading alignment-1.0.8.tar.gz
  Running setup.py egg_info for package alignment
Installing collected packages: alignment
  Running setup.py install for alignment
    SyntaxError: ('invalid syntax', ('/home/pombredanne/align/lib/python2.6/site-packages/alignment/profile.py', 35, 35, '        return {e: float(w) / t for e
 w in self.__weights.iteritems()}\n'))

Successfully installed alignment
eseraygun commented 10 years ago

Your fix was missing an opening parenthesis. I committed another fix.

Thanks for pointing it out.