kopia lustrzana https://github.com/micropython/micropython-lib
re-pcre: Use ffilib to load libpcre shared library.
rodzic
6dae7a234e
commit
e4b67a0d32
|
@ -3,3 +3,4 @@ srctype = micropython-lib
|
|||
type = module
|
||||
version = 0.2
|
||||
author = Paul Sokolovsky
|
||||
depends = ffilib
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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'])
|
||||
|
|
Ładowanie…
Reference in New Issue