Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
logilab-common
Commits
46b95de8e902
Commit
d6e42c2c
authored
Feb 27, 2010
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
db.py
View file @
46b95de8
...
...
@@ -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
)
...
...
setup.py
View file @
46b95de8
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment