summaryrefslogtreecommitdiff
blob: 4435511c22f76c7d2d4923b4f875b99585ea48d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
argparse is in standard library in Python 2.7 and >=3.2
https://code.google.com/p/unittest-ext/issues/detail?id=88
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,9 @@
 # Both install and setup requires - because we read VERSION from within the
 # package, and the package also exports all the APIs.
 # six for compat helpers
-REQUIRES = ['argparse', 'six'],
+REQUIRES = ['six']
+if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 2):
+    REQUIRES.append('argparse')
 
 params = dict(
     name=NAME,