Permalink
Browse files

Add python2.7 to the list of acceptable version of python

git-svn-id: svn://svn.freevo.org/freevo/branches/rel-1/freevo@11871 cc3e1ea1-1e01-0410-8d68-8b121e83a9d5
  • Loading branch information...
1 parent 6bca2b4 commit e51cf965ac9a8b57694d2271995f4c8f120f2612 @charrea6 charrea6 committed Sep 1, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 freevo
View
9 freevo
@@ -179,15 +179,18 @@ def get_python(check_freevo):
get the newest version of python [ with freevo installed ]
"""
_debug_('version=%r' % (sys.version))
- if sys.hexversion >= 0x02060000:
+ if sys.hexversion >= 0x02070000:
+ # python seems to be ok
+ search = ('python2.7', 'python2', 'python')
+ elif sys.hexversion >= 0x02060000:
# python seems to be ok
search = ('python2.6', 'python2', 'python')
elif sys.hexversion >= 0x02050000:
# try python2.5, else take python
search = ('python2.5', 'python2', 'python')
else:
- # python is too old, try to find python2.6, python2.5 or python2
- search = ('python2.6', 'python2.5', 'python2')
+ # python is too old, try to find python2.7, python2.6, python2.5 or python2
+ search = ('python2.7', 'python2.6', 'python2.5', 'python2')
for python in search:
for path in os.environ['PATH'].split(':'):

0 comments on commit e51cf96

Please sign in to comment.