Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7710

Python • Re: Windows offline syntax check tool for MicroPython scripts

$
0
0
One could perhaps edit 'mpy-cross' to provide a 'compile-only' option, emit nothing or at least auto-delete any emitted '.mpy' file.
Here's my patch to do that -

Code:

cd ~/pico/micropython/mpy-crossmv main.c main.c-originalunzip mpy-cross_main_c-2025-02-23.zipmake

Code:

pi@Pi4B:~/pico/micropython/mpy-cross $ ./build/mpy-cross -husage: ./build/mpy-cross [<opts>] [-X <implopt>] [--] <input filename>...Implementation specific options:  emit={bytecode,native,viper} -- set the default code emitter  heapsize=<n> -- set the heap size for the GC (default 1048576)  compile-only -- do not emit output file
If anyone wants to suggest it as an official feature request to the MicroPython team; please be my guest.

Statistics: Posted by hippy — Sun Feb 23, 2025 5:24 pm



Viewing all articles
Browse latest Browse all 7710

Trending Articles