Skip to content

Commit f08c8df

Browse files
committed
venv: Add dummy module.
1 parent b7f0b1a commit f08c8df

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

venv/metadata.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
srctype = dummy
2+
type = module
3+
version = 0.0.0

venv/setup.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import sys
2+
# Remove current dir from sys.path, otherwise setuptools will peek up our
3+
# module instead of system's.
4+
sys.path.pop(0)
5+
from setuptools import setup
6+
sys.path.append("..")
7+
import optimize_upip
8+
9+
setup(name='micropython-venv',
10+
version='0.0.0',
11+
description='Dummy venv module for MicroPython',
12+
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.',
13+
url='https://github.com/micropython/micropython-lib',
14+
author='MicroPython Developers',
15+
author_email='[email protected]',
16+
maintainer='MicroPython Developers',
17+
maintainer_email='[email protected]',
18+
license='MIT',
19+
cmdclass={'optimize_upip': optimize_upip.OptimizeUpip},
20+
py_modules=['venv'])

venv/venv.py

Whitespace-only changes.

0 commit comments

Comments
 (0)