diff --git a/setup.py b/setup.py index 78a2960e92bf..43bc71bdfe9e 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,12 @@ 'rsa>=3.1.2,<=3.1.4'] +if sys.version_info[:2] == (2, 6): + # For python2.6 we have to require argparse since it + # was not in stdlib until 2.7. + requires.append('argparse>=1.1') + + setup_options = dict( name='awscli', version=awscli.__version__,