Skip to content

Commit 50cdc4d

Browse files
committed
fcntl: Depend on _libc.
1 parent 1eff635 commit 50cdc4d

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

fcntl/fcntl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import ffi
2+
import _libc
23

34

4-
libc = ffi.open("libc.so.6")
5+
libc = _libc.get()
56

67
fcntl_l = libc.func("i", "fcntl", "iil")
78
fcntl_s = libc.func("i", "fcntl", "iip")

fcntl/metadata.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
srctype = micropython-lib
2+
type = module
3+
version = 0.0.2
4+
author = Paul Sokolovsky
5+
depends = libc

fcntl/setup.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
from distutils.core import setup
1+
import sys
2+
# Remove current dir from sys.path, otherwise setuptools will peek up our
3+
# module instead of system.
4+
sys.path.pop(0)
5+
from setuptools import setup
6+
27

38
setup(name='micropython-fcntl',
4-
version='0.0.1',
9+
version='0.0.2',
510
description='fcntl module for MicroPython',
11+
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.",
612
url='https://github.com/micropython/micropython/issues/405',
7-
author='MicroPython Developers',
13+
author='Paul Sokolovsky',
814
author_email='micro-python@googlegroups.com',
15+
maintainer='MicroPython Developers',
16+
maintainer_email='micro-python@googlegroups.com',
917
license='MIT',
10-
py_modules=['fcntl'])
18+
py_modules=['fcntl'],
19+
install_requires=['micropython-libc'])

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy