8000 fixed a conditional dependency on python 2.5 · ryanhorn/twilio-python@e1fd9ac · GitHub
[go: up one dir, main page]

Skip to content

Commit e1fd9ac

Browse files
committed
fixed a conditional dependency on python 2.5
1 parent 1a07f51 commit e1fd9ac

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.py

100644100755
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from twilio import __version__
23
from setuptools import setup, find_packages
34

@@ -8,7 +9,12 @@
89
#
910
# You need to have the setuptools module installed. Try reading the setuptools
1011
# documentation: http://pypi.python.org/pypi/setuptools
12+
REQUIRES = ["httplib2 >= 0.7", "six"]
1113

14+
if sys.version_info < (2, 6):
15+
REQUIRES.append('simplejson')
16+
print REQUIRES
17+
1218
setup(
1319
name = "twilio",
1420
version = __version__,
@@ -17,7 +23,7 @@
1723
author_email = "help@twilio.com",
1824
url = "http://github.com/twilio/twilio-python/",
1925
keywords = ["twilio","twiml"],
20-
install_requires = ["httplib2 >= 0.7", "six"],
26+
install_requires = REQUIRES,
2127
packages = find_packages(),
2228
classifiers = [
2329
"Development Status :: 5 - Production/Stable",

0 commit comments

Comments
 (0)
0