mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Try pysqlite3-binary version as well, refs #1125
This commit is contained in:
parent
e2fea36540
commit
49d8fc0568
1 changed files with 6 additions and 4 deletions
|
|
@ -641,10 +641,12 @@ class Datasette:
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if using_pysqlite3:
|
if using_pysqlite3:
|
||||||
try:
|
for package in ("pysqlite3", "pysqlite3-binary"):
|
||||||
info["pysqlite3"] = pkg_resources.get_distribution("pysqlite3").version
|
try:
|
||||||
except pkg_resources.DistributionNotFound:
|
info["pysqlite3"] = pkg_resources.get_distribution(package).version
|
||||||
pass
|
break
|
||||||
|
except pkg_resources.DistributionNotFound:
|
||||||
|
pass
|
||||||
return info
|
return info
|
||||||
|
|
||||||
def _plugins(self, request=None, all=False):
|
def _plugins(self, request=None, all=False):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue