Merged in msabramo/pytest/require_argparse_for_py3_lt_32 (pull request #166)

setup.py: Require argparse for PY3 < 3.2
This commit is contained in:
holger krekel 2014-05-11 19:30:11 +02:00
commit 9181df42da
1 changed files with 2 additions and 1 deletions

View File

@ -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")