summaryrefslogtreecommitdiff
path: root/py/frozenmod.c
AgeCommit message (Collapse)Author
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2017-05-03py/modio: Implement uio.resource_stream(package, resource_path).Paul Sokolovsky
The with semantics of this function is close to pkg_resources.resource_stream() function from setuptools, which is the canonical way to access non-source files belonging to a package (resources), regardless of what medium the package uses (e.g. individual source files vs zip archive). In the case of MicroPython, this function allows to access resources which are frozen into the executable, besides accessing resources in the file system. This is initial stage of the implementation, which actually doesn't implement "package" part of the semantics, just accesses frozen resources from "root", or filesystem resource - from current dir.
2016-05-23py: Allow to stat and import frozen mpy files using new frozen "VFS".Damien George
Freezing mpy files using mpy-tool.py now works again.
2016-05-21py/{builtinimport,frozenmod}: Rework frozen modules support to support packages.Paul Sokolovsky
Now frozen modules is treated just as a kind of VFS, and all operations performed on it correspond to operations on normal filesystem. This allows to support packages properly, and potentially also data files. This change also have changes to rework frozen bytecode modules support to use the same framework, but it's not finished (and actually may not work, as older adhox handling of any type of frozen modules is removed).
2016-04-17py/frozenmod: Pass the source name of the frozen module to the lexer.Damien George
This allows for better error messages, since the name of the file (sans .py) can now be printed when an exception occurs within a frozen script.
2016-04-13py: Add ability to have frozen persistent bytecode from .mpy files.Damien George
The config variable MICROPY_MODULE_FROZEN is now made of two separate parts: MICROPY_MODULE_FROZEN_STR and MICROPY_MODULE_FROZEN_MPY. This allows to have none, either or both of frozen strings and frozen mpy files (aka frozen bytecode).
2016-03-16py/frozenmod: Allow port to override lexer to use for frozen modules.Paul Sokolovsky
2016-01-03py/frozenmod: Store frozen module names together, to quickly scan them.Paul Sokolovsky
2016-01-01py/frozenmod: Make frozen module content be 0-terminated.Paul Sokolovsky
To allow simple zero-terminated lexers.
2015-05-31frozenmod: Include header with function prototypes.Paul Sokolovsky
2015-01-20py: Implement very simple frozen modules support.Paul Sokolovsky
Only modules (not packages) supported now. Source modules can be converted to frozen module structures using tools/make-frozen.py script.