Skip to content

Commit 0682372

Browse files
committed
Install argparse on python < 2.7.
1 parent 0e5b9bf commit 0682372

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import sys
2323

24-
if sys.version_info <= (2, 6):
24+
if sys.version_info < (2, 6):
2525
print('google-api-python-client requires python version >= 2.6.',
2626
file=sys.stderr)
2727
sys.exit(1)
@@ -39,6 +39,9 @@
3939
'uritemplate>=0.6',
4040
]
4141

42+
if sys.version_info < (2, 7):
43+
install_requires.append('argparse')
44+
4245
long_desc = """The Google API Client for Python is a client library for
4346
accessing the Plus, Moderator, and many other Google APIs."""
4447

tox.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ deps = keyring
66
mox
77
pyopenssl
88
pycrypto==2.6
9-
django==1.2
9+
django
1010
webtest
1111
nose
12-
uritemplate
13-
oauth2client
1412
setenv = PYTHONPATH=../google_appengine
1513

1614
[testenv:py26]

0 commit comments

Comments
 (0)