Commit d6e42c2c authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

fix bad comparison of distutils version: comparing a list of string with a tuple of int...

--HG--
branch : stable
parent c5208ce16c26
......@@ -513,6 +513,7 @@ class _PySqlite2Adapter(DBAPIAdapter):
return self._cnx.cursor(PySqlite2Cursor)
def __getattr__(self, attrname):
return getattr(self._cnx, attrname)
cnx = sqlite.connect(database, detect_types=sqlite.PARSE_DECLTYPES)
return self._wrap_if_needed(PySqlite2CnxWrapper(cnx), user)
......
......@@ -177,7 +177,7 @@ def install(**kwargs):
try:
if not USE_SETUPTOOLS:
from distutils import __version__ as distutils_version
if distutils_version.split('.') <= (2, 5, 1):
if tuple([int(x) for x in distutils_version.split('.')]) <= (2, 5, 1):
sys.argv.remove('--install-layout=deb')
print "W: remove '--install-layout=deb' option"
except:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment