diff options
author | heavenshell <heavenshell.jp@gmail.com> | 2012-05-08 21:42:39 +0900 |
---|---|---|
committer | heavenshell <heavenshell.jp@gmail.com> | 2012-05-08 21:42:39 +0900 |
commit | 2ffa8496131fec1638b903fb9738be4eac597288 (patch) | |
tree | 53da5d00bd08b7fa002f664f656a162f8e022cbd /setup.py | |
parent | dfe456fa6b6eadda8ba77fc74ad043e2b3f9d050 (diff) | |
download | cliff-tablib-2ffa8496131fec1638b903fb9738be4eac597288.tar.gz |
enable to use 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(), |