time: Depend on ffilib.

pull/46/head
Paul Sokolovsky 2015-09-07 22:05:20 +03:00
rodzic 37d5611127
commit 4336125d3a
3 zmienionych plików z 7 dodań i 5 usunięć

Wyświetl plik

@ -1,3 +1,4 @@
srctype = micropython-lib
type = module
version = 0.2
version = 0.2.1
depends = ffilib

Wyświetl plik

@ -6,7 +6,7 @@ from setuptools import setup
setup(name='micropython-time',
version='0.2',
version='0.2.1',
description='time 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',
@ -15,4 +15,5 @@ setup(name='micropython-time',
maintainer='MicroPython Developers',
maintainer_email='micro-python@googlegroups.com',
license='MIT',
py_modules=['time'])
py_modules=['time'],
install_requires=['micropython-ffilib'])

Wyświetl plik

@ -1,9 +1,9 @@
from utime import *
import ffi
import _libc
import ffilib
import array
libc = _libc.get()
libc = ffilib.libc()
# struct tm *gmtime(const time_t *timep);
# struct tm *localtime(const time_t *timep);