diff --git a/setup.py b/setup.py index 1b526838..1352b9c6 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,13 @@ from setuptools import setup, find_packages +import sys VERSION = '1.46' +deps = ['psutil', 'colorama', 'six'] + +if sys.version_info < (3,4): + deps.append('pathlib') setup(name='thefuck', version=VERSION, @@ -15,7 +20,7 @@ setup(name='thefuck', 'tests', 'release']), include_package_data=True, zip_safe=False, - install_requires=['pathlib', 'psutil', 'colorama', 'six'], + install_requires=deps, entry_points={'console_scripts': [ 'thefuck = thefuck.main:main', 'thefuck-alias = thefuck.shells:app_alias']})