mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-07 13:41:21 +00:00
#N/A Fix setup.py
This commit is contained in:
parent
17d359b43f
commit
3d842fe6eb
15
setup.py
15
setup.py
@ -3,22 +3,19 @@ from setuptools import setup, find_packages
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
if sys.version_info < (2, 7):
|
if sys.version_info < (2, 7):
|
||||||
print(
|
print('thefuck requires Python version 2.7 or later' +
|
||||||
'thefuck requires Python version 2.7 or later' +
|
' ({}.{} detected).'.format(*sys.version_info[:2]))
|
||||||
' ({}.{} detected).'.format(*sys.version_info[:2]))
|
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
elif (3, 0) < sys.version_info < (3, 3):
|
||||||
if sys.version_info < (3, 3):
|
print('thefuck requires Python version 3.3 or later' +
|
||||||
print(
|
' ({}.{} detected).'.format(*sys.version_info[:2]))
|
||||||
'thefuck requires Python version 3.3 or later' +
|
|
||||||
' ({}.{} detected).'.format(*sys.version_info[:2]))
|
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
VERSION = '1.46'
|
VERSION = '1.46'
|
||||||
|
|
||||||
install_requires = ['psutil', 'colorama', 'six']
|
install_requires = ['psutil', 'colorama', 'six']
|
||||||
|
|
||||||
if sys.version_info < (3,4):
|
if sys.version_info < (3, 4):
|
||||||
install_requires.append('pathlib')
|
install_requires.append('pathlib')
|
||||||
|
|
||||||
setup(name='thefuck',
|
setup(name='thefuck',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user