1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 12:06:04 +00:00

Merge pull request #317 from SanketDG/setup_fix

fix setup.py version checking
This commit is contained in:
Vladimir Iakovlev 2015-07-27 01:05:25 +03:00
commit c0002fe6e0

View File

@ -2,13 +2,14 @@
from setuptools import setup, find_packages
import sys
if sys.version_info < (2, 7):
version = sys.version_info[:2]
if version < (2, 7):
print('thefuck requires Python version 2.7 or later' +
' ({}.{} detected).'.format(*sys.version_info[:2]))
' ({}.{} detected).'.format(*version))
sys.exit(-1)
elif (3, 0) < sys.version_info < (3, 3):
elif (3, 0) < version < (3, 3):
print('thefuck requires Python version 3.3 or later' +
' ({}.{} detected).'.format(*sys.version_info[:2]))
' ({}.{} detected).'.format(*version))
sys.exit(-1)
VERSION = '2.4'