summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDoug Hellmann <doug.hellmann@gmail.com>2012-05-14 07:44:43 -0700
committerDoug Hellmann <doug.hellmann@gmail.com>2012-05-14 07:44:43 -0700
commit8dff166aa9ef41fb37217ad7e7aad78532d4c7bb (patch)
treee9b81492e166b8b3b300549994993bd3f7fa3b89 /setup.py
parent31ac9831956e030bb4f815c20583482ed8cae852 (diff)
parent2ffa8496131fec1638b903fb9738be4eac597288 (diff)
downloadcliff-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.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index f288684..377eb70 100644
--- a/setup.py
+++ b/setup.py
@@ -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(),