diff --git a/time/metadata.txt b/time/metadata.txt index a984e65f..e07f78e8 100644 --- a/time/metadata.txt +++ b/time/metadata.txt @@ -1,3 +1,4 @@ srctype = micropython-lib type = module -version = 0.2 +version = 0.2.1 +depends = ffilib diff --git a/time/setup.py b/time/setup.py index 80fdfc38..c9b4dedf 100644 --- a/time/setup.py +++ b/time/setup.py @@ -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']) diff --git a/time/time.py b/time/time.py index 6c5dcf59..11b5ef4c 100644 --- a/time/time.py +++ b/time/time.py @@ -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);