Skip to content

Commit a77c23a

Browse files
committed
Fixed simplejson dependency for Python 2.4.
Recent versions of simplejson no longer support Python 2.4.
1 parent 55d92f3 commit a77c23a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@
1919

2020

2121
install_requires = ['httplib2 >= 0.7.0', ]
22-
# simplejson is included in the standard library since Python 2.6 as json.
23-
if sys.version_info[:2] < (2, 6):
22+
23+
# simplejson is included in the standard library since Python 2.6 as json
24+
if sys.version_info < (2, 5):
25+
# 2.1 drops support for 2.4
26+
install_requires.append('simplejson >= 2.0.9, < 2.1')
27+
elif sys.version_info[:2] < (2, 6):
2428
install_requires.append('simplejson >= 2.0.9')
2529

2630
# dateutil supports python 2.x in dateutil-1, python 3.x in dateutil-2.0 and

0 commit comments

Comments
 (0)