avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From teb...@apache.org
Subject svn commit: r1341159 - /avro/trunk/lang/py/setup.py
Date Mon, 21 May 2012 19:14:21 GMT
Author: tebeka
Date: Mon May 21 19:14:20 2012
New Revision: 1341159

URL: http://svn.apache.org/viewvc?rev=1341159&view=rev
Log:
We need urllib3 on any version

Modified:
    avro/trunk/lang/py/setup.py

Modified: avro/trunk/lang/py/setup.py
URL: http://svn.apache.org/viewvc/avro/trunk/lang/py/setup.py?rev=1341159&r1=1341158&r2=1341159&view=diff
==============================================================================
--- avro/trunk/lang/py/setup.py (original)
+++ avro/trunk/lang/py/setup.py Mon May 21 19:14:20 2012
@@ -19,12 +19,11 @@ try:
   from setuptools import setup
 except ImportError:
   from distutils.core import setup
-
 from sys import version_info
-if version_info[:2] > (2, 5):
-    install_requires = ['python-snappy']
-else:
-    install_requires = ['python-snappy', 'simplejson >= 2.0.9', 'urllib3']
+
+install_requires = ['python-snappy', 'urllib3']
+if version_info[:2] <= (2, 5):
+    install_requires.append('simplejson >= 2.0.9')
 
 setup(
   name = 'avro',



Mime
View raw message