X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/1c7620f16af735f074cc9903e15e38260f1faf4e..309a51f5271dbcb1a1639204cdf78b5b2879c302:/setup.py?ds=sidebyside diff --git a/setup.py b/setup.py index a275915..27e369f 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,14 @@ from setuptools import setup, find_packages +install_requirements = ['six==1.5.2', 'pytz', 'tzlocal'] + version = '0.10.0' +try: + import importlib +except ImportError: + install_requirements.append('importlib') + setup( name='tasklib', version=version, @@ -15,7 +22,7 @@ setup( packages=find_packages(), include_package_data=True, test_suite='tasklib.tests', - install_requires=['six==1.5.2', 'pytz', 'tzlocal'], + install_requires=install_requirements, classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python',