Skip to content

Commit

Permalink
Merge branch 'hotfix/depend-on-importlib-on-py2.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomurri committed Dec 7, 2015
2 parents b684028 + 0296be5 commit f61487e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,13 @@ def ansible_pb_files():
'python-gflags',
]

if sys.version_info[:2] == (2, 6):
# Python 2.6.
# Google api python client *requires* argparse
# cfr. http://code.google.com/p/google-api-python-client/issues/detail?id=299
if sys.version_info < (2, 7):
# Additional dependencies for Python 2.6:
# - Google api python client *requires* argparse,
# cfr. http://code.google.com/p/google-api-python-client/issues/detail?id=299
required_packages.append('argparse')
# - OpenStack's "keystoneclient" requires `importlib`
required_packages.append('importlib')

setup(
name="elasticluster",
Expand Down

0 comments on commit f61487e

Please sign in to comment.