Usability: Improve "tools/mpy_cross_all" to invoke the "mpy-cross" program coming from the mpy_cross distribution #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dear @pfalcon, @dpgeorge, @stinos, @dhylands and all maintainers of good faith in MicroPython tooling,
first things first: Thank you so much for your amazing work on MicroPython and its ecosystem - you know who you are.
Introduction
Coming from micropython/micropython#4955 and building upon micropython/micropython#3040 and micropython/micropython#3057, we enabled
tools/mpy_cross_all.py
to invoke thempy-cross
program through the B351 finempy-cross
distribution package.Setup
The operator will be able to decide to selectively install specific versions of
mpy-cross
likesource .venv2/bin/activate pip install mpy-cross=1.9.4
into the Python environment running on her workstation.
Usage
Description
When running it from a Python environment where the
mpy_cross
modules is installed,mpy_cross_all.py
will attempt to invokempy-cross
from thempy_cross
distribution.Otherwise, it will go down the established route of invoking
mpy-cross
directly, essentially expecting it to reside somewhere on$PATH
.Synopsis
We hope you like this.
With kind regards,
Andreas.