From 30082bc9a94614bf6c42c25d6b688493b799871c Mon Sep 17 00:00:00 2001 From: Matias Kreder Date: Sat, 4 Jul 2015 11:55:28 -0300 Subject: [PATCH] fixed dependency problem, on python 3.4.0 pathlib is included in the python distribution so it must not be included in the requirements for thefuck otherwise it wont run at startup --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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']})