summaryrefslogtreecommitdiff
path: root/tools/make-frozen.py
AgeCommit message (Collapse)Author
2020-09-11tools: Write msvc-compatible frozen content.stijn
The msvc compiler doesn't accept zero-sized arrays so let the freezing process generate compatible C code in case no modules are found and the involved arrays are all empty. This doesn't affect the functionality in any way because those arrays only get accessed when mp_frozen_mpy_names contains names, i.e. when modules are actually found.
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
This is run with uncrustify 0.70.1, and black 19.10b0.
2019-10-15tools/make-frozen.py: Allow to run with no directory passed in.Damien George
In which case it will just emit empty frozen C definitions.
2016-05-21tools/make-frozen: Update for latest changes in frozen modules support.Paul Sokolovsky
Frozen modules are now stored with extensions and with '/' as path separator. In other words, frozen modules paths stored as they are in normal filesystem.
2016-05-14tools/make-frozen.py: Quick fix to support package-modules.Paul Sokolovsky
It allows to "import foo.bar", but not "from foo import bar".
2016-05-13tools/make-frozen.py: Properly escape hex chars when making C strings.Damien George
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-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-07-06tools/make-frozen.py: Use Python2-compatible shebang.Paul Sokolovsky
2015-07-06tools/make-frozen.py: Actually make Python2-compatible.Paul Sokolovsky
2015-07-06tools/make-frozen.py: Add Python2 compatibility.Paul Sokolovsky
2015-06-03tools/make-frozen.py: Handle trailing slash in argument more reliably.Paul Sokolovsky
2015-05-30tools/make-frozen.py: Open files in binary mode.Paul Sokolovsky
2015-05-30tools/make-frozen.py: Preserve directory hierarchy.Paul Sokolovsky
Currently, frozen packages are not supported, but eventually they should be, so make sure to store complete directory hierarchy.
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.