sqlite3: Use ffilib to load shared library.

pull/28/merge
Paul Sokolovsky 2015-06-05 18:39:09 +03:00
rodzic cb4ba77c86
commit 132ab9520e
3 zmienionych plików z 7 dodań i 5 usunięć

Wyświetl plik

@ -1,4 +1,5 @@
srctype = micropython-lib
type = module
version = 0.2.1
version = 0.2.2
author = Paul Sokolovsky
depends = ffilib

Wyświetl plik

@ -6,7 +6,7 @@ from setuptools import setup
setup(name='micropython-sqlite3',
version='0.2.1',
version='0.2.2',
description='sqlite3 module for MicroPython',
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.",
url='https://github.com/micropython/micropython/issues/405',
@ -15,4 +15,5 @@ setup(name='micropython-sqlite3',
maintainer='MicroPython Developers',
maintainer_email='micro-python@googlegroups.com',
license='MIT',
py_modules=['sqlite3'])
py_modules=['sqlite3'],
install_requires=['micropython-ffilib'])

Wyświetl plik

@ -1,7 +1,7 @@
import ffi
import ffilib
sq3 = ffi.open("libsqlite3.so.0")
sq3 = ffilib.open("libsqlite3")
sqlite3_open = sq3.func("i", "sqlite3_open", "sp")
#int sqlite3_close(sqlite3*);