os: Depend on _libc.

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

Wyświetl plik

@ -1,4 +1,5 @@
srctype = micropython-lib srctype = micropython-lib
type = package type = package
version = 0.1.1 version = 0.1.2
author = Paul Sokolovsky author = Paul Sokolovsky
depends = libc

Wyświetl plik

@ -3,13 +3,14 @@ import array
import struct import struct
import errno import errno
import stat as stat_ import stat as stat_
import _libc
try: try:
from _os import * from _os import *
except: except:
pass pass
libc = ffi.open("libc.so.6") libc = _libc.get()
errno_ = libc.var("i", "errno") errno_ = libc.var("i", "errno")
mkdir_ = libc.func("i", "mkdir", "si") mkdir_ = libc.func("i", "mkdir", "si")

Wyświetl plik

@ -6,7 +6,7 @@ from setuptools import setup
setup(name='micropython-os', setup(name='micropython-os',
version='0.1.1', version='0.1.2',
description='os module for MicroPython', description='os 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.", 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',
@ -15,4 +15,5 @@ setup(name='micropython-os',
maintainer='MicroPython Developers', maintainer='MicroPython Developers',
maintainer_email='micro-python@googlegroups.com', maintainer_email='micro-python@googlegroups.com',
license='MIT', license='MIT',
packages=['os']) packages=['os'],
install_requires=['micropython-libc'])