Skip to content

Commit 132ab95

Browse files
committed
sqlite3: Use ffilib to load shared library.
1 parent cb4ba77 commit 132ab95

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

sqlite3/metadata.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
srctype = micropython-lib
22
type = module
3-
version = 0.2.1
3+
version = 0.2.2
44
author = Paul Sokolovsky
5+
depends = ffilib

sqlite3/setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
setup(name='micropython-sqlite3',
9-
version='0.2.1',
9+
version='0.2.2',
1010
description='sqlite3 module for MicroPython',
1111
long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.",
1212
url='https://github.com/micropython/micropython/issues/405',
@@ -15,4 +15,5 @@
1515
maintainer='MicroPython Developers',
1616
maintainer_email='micro-python@googlegroups.com',
1717
license='MIT',
18-
py_modules=['sqlite3'])
18+
py_modules=['sqlite3'],
19+
install_requires=['micropython-ffilib'])

sqlite3/sqlite3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import ffi
1+
import ffilib
22

33

4-
sq3 = ffi.open("libsqlite3.so.0")
4+
sq3 = ffilib.open("libsqlite3")
55

66
sqlite3_open = sq3.func("i", "sqlite3_open", "sp")
77
#int sqlite3_close(sqlite3*);

0 commit comments

Comments
 (0)