fcntl: Depend on _libc.

pull/118/head^2
Paul Sokolovsky 2014-06-21 14:52:03 +03:00
rodzic 1eff635223
commit 50cdc4d93a
3 zmienionych plików z 20 dodań i 5 usunięć

Wyświetl plik

@ -1,7 +1,8 @@
import ffi
import _libc
libc = ffi.open("libc.so.6")
libc = _libc.get()
fcntl_l = libc.func("i", "fcntl", "iil")
fcntl_s = libc.func("i", "fcntl", "iip")

Wyświetl plik

@ -0,0 +1,5 @@
srctype = micropython-lib
type = module
version = 0.0.2
author = Paul Sokolovsky
depends = libc

Wyświetl plik

@ -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',
version='0.0.1',
version='0.0.2',
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',
author='MicroPython Developers',
author='Paul Sokolovsky',
author_email='micro-python@googlegroups.com',
maintainer='MicroPython Developers',
maintainer_email='micro-python@googlegroups.com',
license='MIT',
py_modules=['fcntl'])
py_modules=['fcntl'],
install_requires=['micropython-libc'])