diff options
author | Manuel Ebert <manuel@1450.me> | 2014-07-21 14:22:16 +0900 |
---|---|---|
committer | Manuel Ebert <manuel@1450.me> | 2014-07-21 14:22:16 +0900 |
commit | 5799be7f1ced7e31054caa8ba3793ca61cf33e40 (patch) | |
tree | c013a6e761a411cd2e8c37bdd447b41b2b40b350 | |
parent | 316374922b2b1862022fa6e638f262f7666a75bc (diff) |
Conditional dateutil for python 3
-rw-r--r-- | setup.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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" |