kopia lustrzana https://github.com/micropython/micropython-lib
signal: Switch to ffilib.
rodzic
6752c6a66a
commit
7b9dcba072
|
@ -1,5 +1,5 @@
|
|||
srctype = micropython-lib
|
||||
type = module
|
||||
version = 0.3
|
||||
version = 0.3.1
|
||||
author = Paul Sokolovsky
|
||||
depends = libc
|
||||
depends = ffilib
|
||||
|
|
|
@ -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'])
|
||||
|
|
|
@ -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")
|
||||
|
|
Ładowanie…
Reference in New Issue