diff --git a/signal/metadata.txt b/signal/metadata.txt index 4dcf4ee2..e9fda418 100644 --- a/signal/metadata.txt +++ b/signal/metadata.txt @@ -1,5 +1,5 @@ srctype = micropython-lib type = module -version = 0.3 +version = 0.3.1 author = Paul Sokolovsky -depends = libc +depends = ffilib diff --git a/signal/setup.py b/signal/setup.py index 029f405d..11874e12 100644 --- a/signal/setup.py +++ b/signal/setup.py @@ -6,7 +6,7 @@ from setuptools import setup setup(name='micropython-signal', - version='0.3', + version='0.3.1', description='signal 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', @@ -16,4 +16,4 @@ setup(name='micropython-signal', maintainer_email='micro-python@googlegroups.com', license='MIT', py_modules=['signal'], - install_requires=['micropython-libc']) + install_requires=['micropython-ffilib']) diff --git a/signal/signal.py b/signal/signal.py index 141442fc..c41eb2bd 100644 --- a/signal/signal.py +++ b/signal/signal.py @@ -1,4 +1,4 @@ -import _libc +import ffilib SIG_DFL = 0 @@ -8,7 +8,7 @@ SIGINT = 2 SIGPIPE = 13 SIGTERM = 15 -libc = _libc.get() +libc = ffilib.libc() signal_i = libc.func("i", "signal", "ii") signal_p = libc.func("i", "signal", "ip")