diff --git a/re-pcre/metadata.txt b/re-pcre/metadata.txt index e432d6d3..869363fc 100644 --- a/re-pcre/metadata.txt +++ b/re-pcre/metadata.txt @@ -3,3 +3,4 @@ srctype = micropython-lib type = module version = 0.2 author = Paul Sokolovsky +depends = ffilib diff --git a/re-pcre/re.py b/re-pcre/re.py index d9eaea3d..f1408654 100644 --- a/re-pcre/re.py +++ b/re-pcre/re.py @@ -1,8 +1,8 @@ -import ffi +import ffilib import array -pcre = ffi.open("libpcre.so.3") +pcre = ffilib.open("libpcre") # pcre *pcre_compile(const char *pattern, int options, # const char **errptr, int *erroffset, diff --git a/re-pcre/setup.py b/re-pcre/setup.py index 1b991e32..6b54a441 100644 --- a/re-pcre/setup.py +++ b/re-pcre/setup.py @@ -15,4 +15,5 @@ setup(name='micropython-re-pcre', maintainer='MicroPython Developers', maintainer_email='micro-python@googlegroups.com', license='MIT', - py_modules=['re']) + py_modules=['re'], + install_requires=['micropython-ffilib'])