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:
commit
c0002fe6e0
9
setup.py
9
setup.py
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user