kopia lustrzana https://github.com/micropython/micropython-lib
fcntl: Depend on _libc.
rodzic
1eff635223
commit
50cdc4d93a
|
@ -1,7 +1,8 @@
|
||||||
import ffi
|
import ffi
|
||||||
|
import _libc
|
||||||
|
|
||||||
|
|
||||||
libc = ffi.open("libc.so.6")
|
libc = _libc.get()
|
||||||
|
|
||||||
fcntl_l = libc.func("i", "fcntl", "iil")
|
fcntl_l = libc.func("i", "fcntl", "iil")
|
||||||
fcntl_s = libc.func("i", "fcntl", "iip")
|
fcntl_s = libc.func("i", "fcntl", "iip")
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
srctype = micropython-lib
|
||||||
|
type = module
|
||||||
|
version = 0.0.2
|
||||||
|
author = Paul Sokolovsky
|
||||||
|
depends = libc
|
|
@ -1,10 +1,19 @@
|
||||||
from distutils.core import setup
|
import sys
|
||||||
|
# Remove current dir from sys.path, otherwise setuptools will peek up our
|
||||||
|
# module instead of system.
|
||||||
|
sys.path.pop(0)
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
setup(name='micropython-fcntl',
|
setup(name='micropython-fcntl',
|
||||||
version='0.0.1',
|
version='0.0.2',
|
||||||
description='fcntl module for MicroPython',
|
description='fcntl 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',
|
url='https://github.com/micropython/micropython/issues/405',
|
||||||
author='MicroPython Developers',
|
author='Paul Sokolovsky',
|
||||||
author_email='micro-python@googlegroups.com',
|
author_email='micro-python@googlegroups.com',
|
||||||
|
maintainer='MicroPython Developers',
|
||||||
|
maintainer_email='micro-python@googlegroups.com',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
py_modules=['fcntl'])
|
py_modules=['fcntl'],
|
||||||
|
install_requires=['micropython-libc'])
|
||||||
|
|
Ładowanie…
Reference in New Issue