Paul Sokolovsky
daa4793578
tools/make-frozen: Update for latest changes in frozen modules support.
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.
9 years ago
Paul Sokolovsky
7b1bf0c308
tools/make-frozen.py: Quick fix to support package-modules.
It allows to "import foo.bar", but not "from foo import bar".
9 years ago
Damien George
5985e41afc
tools/make-frozen.py: Properly escape hex chars when making C strings.
9 years ago
Damien George
0a2e9650f5
py: Add ability to have frozen persistent bytecode from .mpy files.
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).
9 years ago
Paul Sokolovsky
17f324b836
py/frozenmod: Store frozen module names together, to quickly scan them.
9 years ago
Paul Sokolovsky
0992588811
py/frozenmod: Make frozen module content be 0-terminated.
To allow simple zero-terminated lexers.
9 years ago
Paul Sokolovsky
6ab8b63bdd
tools/make-frozen.py: Use Python2-compatible shebang.
9 years ago
Paul Sokolovsky
de575c80b9
tools/make-frozen.py: Actually make Python2-compatible.
9 years ago
Paul Sokolovsky
3a2e9f20f6
tools/make-frozen.py: Add Python2 compatibility.
9 years ago
Paul Sokolovsky
f8a39e3bb1
tools/make-frozen.py: Handle trailing slash in argument more reliably.
10 years ago
Paul Sokolovsky
c02dc8b2c9
tools/make-frozen.py: Open files in binary mode.
10 years ago
Paul Sokolovsky
a8e7c03171
tools/make-frozen.py: Preserve directory hierarchy.
Currently, frozen packages are not supported, but eventually they should be,
so make sure to store complete directory hierarchy.
10 years ago
Paul Sokolovsky
640e0b221e
py: Implement very simple frozen modules support.
Only modules (not packages) supported now. Source modules can be converted
to frozen module structures using tools/make-frozen.py script.
10 years ago