Commit 31661d6
committed
compile: New implementation of multi-file compilation using mpy-tool.
Add a new implementation of `compile_multi_file()` that uses `mpy-tool`
to find imports. This will work better than the previous implementation
that used Python's `ModuleFinder`, which had several shortcomings.
This is only implemented for MPY ABI v6 for now. To make it work for
older ABIs, we would need to get an older copy of `mpy-tool`, and
backport the json output feature to it.1 parent f162083 commit 31661d6
File tree
6 files changed
+2946
-12
lines changed- pybricksdev
- _vendored
- tests
6 files changed
+2946
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
| |||
0 commit comments