From 5799be7f1ced7e31054caa8ba3793ca61cf33e40 Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Mon, 21 Jul 2014 14:22:16 +0900 Subject: [PATCH] Conditional dateutil for python 3 --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 2a4f0f30..f0015be2 100644 --- a/setup.py +++ b/setup.py @@ -69,7 +69,9 @@ conditional_dependencies = { "pyreadline>=2.0": not readline_available and "win32" in sys.platform, "readline>=6.2": not readline_available and "win32" not in sys.platform, "colorama>=0.2.5": "win32" in sys.platform, - "argparse>=1.1.0": sys.version.startswith("2.6") + "argparse>=1.1.0": sys.version.startswith("2.6"), + "python-dateutil==1.5": sys.version.startswith("2."), + "python-dateutil>=2.2": sys.version.startswith("3."), } @@ -84,7 +86,6 @@ setup( "six>=1.6.1", "tzlocal>=1.1", "keyring>=3.3", - "python-dateutil==1.5" ] + [p for p, cond in conditional_dependencies.items() if cond], extras_require = { "encrypted": "pycrypto>=2.6"