Skip to content

Commit

Permalink
Add argparse dependency only if python<2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Toilal committed Jan 6, 2015
1 parent b899db3 commit b84d0f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Expand Up @@ -21,15 +21,18 @@
from setuptools import setup, find_packages

import os
import sys


here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
HISTORY = open(os.path.join(here, 'HISTORY.rst')).read()


# argparse is available in python>2.7. For older version, requires 'argparse' module.
install_requires = ['babelfish>=0.5.3', 'stevedore>=0.14', 'requests', 'python-dateutil>=2.1', 'argparse']
install_requires = ['babelfish>=0.5.3', 'stevedore>=0.14', 'requests', 'python-dateutil>=2.1']
if sys.version_info < (2, 7):
# argparse is part of the standard library in python 2.7+
install_requires.append('argparse')

tests_require = ['PyYAML'] # Fabric not available (yet!) for python3

Expand Down

0 comments on commit b84d0f7

Please sign in to comment.