diff options
author | Marc Abramowitz <marc@marc-abramowitz.com> | 2014-05-09 23:40:06 -0700 |
---|---|---|
committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2014-05-09 23:40:06 -0700 |
commit | 24744cf5cf696da777ea009534eee7785887be7b (patch) | |
tree | f73a71db6d0c386392ed5fbb85b7764cfd1f6e6c | |
parent | ffc969b6c2a0038a82da18daa3b4c43898082007 (diff) | |
download | pytest-24744cf5cf696da777ea009534eee7785887be7b.tar.gz |
setup.py: Require argparse for PY3 < 3.2
E.g.: python3.1; noticed py31 failure while running tox for six
--HG--
branch : require_argparse_for_py3_lt_32
-rw-r--r-- | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -18,7 +18,8 @@ classifiers=['Development Status :: 6 - Mature', long_description = open("README.rst").read() def main(): install_requires = ["py>=1.4.20"] - if sys.version_info < (2,7): + if (sys.version_info < (2,7) or + sys.version_info > (3, ) and sys.version_info < (3, 2)): install_requires.append("argparse") if sys.platform == "win32": install_requires.append("colorama") |