Skip to content

Commit d32312e

Browse files
committed
select: Depend on _libc.
1 parent 50cdc4d commit d32312e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

select/metadata.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
srctype = micropython-lib
22
type = module
3-
version = 0.0.6
3+
version = 0.0.7
44
author = Paul Sokolovsky
5-
depends = os
5+
depends = os, libc

select/select.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
import struct
33
import os
44
import errno
5+
import _libc
56

67

7-
libc = ffi.open("libc.so.6")
8+
libc = _libc.get()
89

910
#int epoll_create(int size);
1011
epoll_create = libc.func("i", "epoll_create", "i")

select/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
setup(name='micropython-select',
9-
version='0.0.6',
9+
version='0.0.7',
1010
description='select module for MicroPython',
1111
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.",
1212
url='https://github.com/micropython/micropython/issues/405',
@@ -16,4 +16,4 @@
1616
maintainer_email='micro-python@googlegroups.com',
1717
license='MIT',
1818
py_modules=['select'],
19-
install_requires=['micropython-os'])
19+
install_requires=['micropython-os', 'micropython-libc'])

0 commit comments

Comments
 (0)