]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

setup: Add conditional dependency for importlib
authorTomas Babej <tomasbabej@gmail.com>
Sun, 9 Aug 2015 09:23:01 +0000 (11:23 +0200)
committerTomas Babej <tomasbabej@gmail.com>
Sun, 9 Aug 2015 12:54:06 +0000 (14:54 +0200)
setup.py

index a275915416c2327702a79f7f3769010a5f3dd41b..27e369f5dc7a35b4acab4035aa648a42d8a99b0b 100644 (file)
--- 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',