From 1d7842eace70182b38f16eac96e95ef50a93511d Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 21 Jun 2014 02:52:41 +0300 Subject: [PATCH] io: As MicroPython builtin module is now _io, add dummy io wrapper. --- io/io.py | 1 + io/metadata.txt | 3 +++ io/setup.py | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 io/io.py create mode 100644 io/metadata.txt create mode 100644 io/setup.py diff --git a/io/io.py b/io/io.py new file mode 100644 index 00000000..5536a308 --- /dev/null +++ b/io/io.py @@ -0,0 +1 @@ +from _io import * diff --git a/io/metadata.txt b/io/metadata.txt new file mode 100644 index 00000000..dc5f60a6 --- /dev/null +++ b/io/metadata.txt @@ -0,0 +1,3 @@ +srctype = dummy +type = module +version = 0.0.1 diff --git a/io/setup.py b/io/setup.py new file mode 100644 index 00000000..a28fccba --- /dev/null +++ b/io/setup.py @@ -0,0 +1,18 @@ +import sys +# Remove current dir from sys.path, otherwise setuptools will peek up our +# module instead of system. +sys.path.pop(0) +from setuptools import setup + + +setup(name='micropython-io', + version='0.0.1', + description='Dummy io module for MicroPython', + long_description='This is a dummy implementation of a module for MicroPython standard library.\nIt contains zero or very little functionality, and primarily intended to\navoid import errors (using idea that even if an application imports a\nmodule, it may be not using it onevery code path, so may work at least\npartially). It is expected that more complete implementation of the module\nwill be provided later. Please help with the development if you are\ninterested in this module.', + url='https://github.com/micropython/micropython/issues/405', + author='MicroPython Developers', + author_email='micro-python@googlegroups.com', + maintainer='MicroPython Developers', + maintainer_email='micro-python@googlegroups.com', + license='MIT', + py_modules=['io'])