From 93da05d3dae69618fb53794a8ca099e895d22e16 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 4 Nov 2017 00:02:55 +0200 Subject: [PATCH] sys: Add placeholder module. --- sys/metadata.txt | 3 +++ sys/setup.py | 20 ++++++++++++++++++++ sys/sys.py | 0 3 files changed, 23 insertions(+) create mode 100644 sys/metadata.txt create mode 100644 sys/setup.py create mode 100644 sys/sys.py diff --git a/sys/metadata.txt b/sys/metadata.txt new file mode 100644 index 00000000..976088c8 --- /dev/null +++ b/sys/metadata.txt @@ -0,0 +1,3 @@ +srctype = dummy +type = module +version = 0.0.0 diff --git a/sys/setup.py b/sys/setup.py new file mode 100644 index 00000000..d32427a6 --- /dev/null +++ b/sys/setup.py @@ -0,0 +1,20 @@ +import sys +# Remove current dir from sys.path, otherwise setuptools will peek up our +# module instead of system's. +sys.path.pop(0) +from setuptools import setup +sys.path.append("..") +import optimize_upip + +setup(name='micropython-sys', + version='0.0.0', + description='Dummy sys 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-lib', + author='MicroPython Developers', + author_email='micro-python@googlegroups.com', + maintainer='MicroPython Developers', + maintainer_email='micro-python@googlegroups.com', + license='MIT', + cmdclass={'optimize_upip': optimize_upip.OptimizeUpip}, + py_modules=['sys']) diff --git a/sys/sys.py b/sys/sys.py new file mode 100644 index 00000000..e69de29b