diff options
author | Doug Hellmann <doug.hellmann@gmail.com> | 2012-05-14 07:44:43 -0700 |
---|---|---|
committer | Doug Hellmann <doug.hellmann@gmail.com> | 2012-05-14 07:44:43 -0700 |
commit | 8dff166aa9ef41fb37217ad7e7aad78532d4c7bb (patch) | |
tree | e9b81492e166b8b3b300549994993bd3f7fa3b89 /setup.py | |
parent | 31ac9831956e030bb4f815c20583482ed8cae852 (diff) | |
parent | 2ffa8496131fec1638b903fb9738be4eac597288 (diff) | |
download | cliff-8dff166aa9ef41fb37217ad7e7aad78532d4c7bb.tar.gz |
Merge pull request #9 from heavenshell/feature_py26
Enable to run in Python2.6
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -21,6 +21,18 @@ try: except IOError: long_description = '' +install_requires = ['distribute', + # disabled until OpenStack catches up 'PrettyTable>=0.6', + 'PrettyTable', + 'cmd2', + 'tablib', + ] +try: + import argparse +except ImportError: + install_requires.append('argparse') + + ############################################################################## # find_package_data is an Ian Bicking creation. @@ -145,12 +157,7 @@ setup( provides=['cliff', ], - install_requires=['distribute', - # disabled until OpenStack catches up 'PrettyTable>=0.6', - 'PrettyTable', - 'cmd2', - 'tablib', - ], + install_requires=install_requires, namespace_packages=[], packages=find_packages(), |