mirror of
https://github.com/micropython/micropython.git
synced 2025-09-07 02:10:52 +02:00
This commit adds a pyscript variant for use in https://pyscript.net/. The configuration is: - No ASYNCIFY, in order to keep the WASM size down and have good performance. - MICROPY_CONFIG_ROM_LEVEL_FULL_FEATURES to enable most features. - Custom manifest that includes many of the python-stdlib libraries. - MICROPY_GC_SPLIT_HEAP_AUTO to increase GC heap size instead of doing a collection when memory is exhausted. This is needed because ASYNCIFY is disabled. Instead the GC collection is run at the top-level before executing any Python code. - No MICROPY_VARIANT_ENABLE_JS_HOOK because there is no asynchronous keyboard input to interrupt a running script. Signed-off-by: Damien George <damien@micropython.org>
28 lines
504 B
Python
28 lines
504 B
Python
require("abc")
|
|
require("base64")
|
|
require("collections")
|
|
require("collections-defaultdict")
|
|
require("copy")
|
|
require("datetime")
|
|
require("fnmatch")
|
|
require("functools")
|
|
require("gzip")
|
|
require("hmac")
|
|
require("html")
|
|
require("inspect")
|
|
require("io")
|
|
require("itertools")
|
|
require("locale")
|
|
require("logging")
|
|
require("operator")
|
|
require("os")
|
|
require("os-path")
|
|
require("pathlib")
|
|
require("stat")
|
|
require("tarfile")
|
|
require("tarfile-write")
|
|
require("time")
|
|
require("unittest")
|
|
require("uu")
|
|
require("zlib")
|