projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e14d47
)
install simplejson if python < 2.6
author
Kenneth Reitz
<me@kennethreitz.com>
Fri, 15 Apr 2011 21:27:02 +0000
(17:27 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Fri, 15 Apr 2011 21:27:02 +0000
(17:27 -0400)
setup.py
patch
|
blob
|
history
diff --git
a/setup.py
b/setup.py
index
edf89f1
..
b261718
100644
(file)
--- a/
setup.py
+++ b/
setup.py
@@
-8,7
+8,7
@@
import requests
from distutils.core import setup
-
+
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
@@
-16,10
+16,11
@@
if sys.argv[-1] == "publish":
if sys.argv[-1] == "test":
os.system("python test_requests.py")
sys.exit()
-
+
required = []
-# if python > 2.6, require simplejson
+if sys.version_info[:2] < (2,6):
+ required.append('simplejson')
setup(
name='requests',