Skip to content

tools/mip_lib: Add tool to instal modules from micropython-lib manife… - #1187

Open
Josverl wants to merge 1 commit into
micropython:masterfrom
Josverl:tools/mip_lib
Open

Josverl wants to merge 1 commit into
micropython:masterfrom
Josverl:tools/mip_lib

Conversation

@Josverl

@Josverl Josverl commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

I regularly want to use MicroPython modules from MicroPython lib and install or copy them to a location on a filesystem for testing or other uses such as creating creating stubs.
AFAIK There is no current tool that offers that functionality, therefore introducing mip_lib.py

For simple modules that is just a single file copy, but for modules with dependencies, or compound or namespace packages that gets complex and leads to hardcoded scripts.

The file copy approach is currently used in ci.sh in this repo,
There I encountered it when setting up CI tests for the typing.py module, where several modules have interwoven dependencies.
That PR #1051 still uses simple copies, but the CI steps could be simplified by using mip_lib

Testing

I manually tested this and inspected the resulting venv.

Trade-offs and Alternatives

  • this could be packaged as part of mpremote or manifestfile.py

Generative AI

I used generative AI tools when creating this PR, but a human has checked the
code and is responsible for the code and the description above.

@Josverl
Josverl force-pushed the tools/mip_lib branch 3 times, most recently from b06c524 to a8d7f35 Compare December 3, 2026 21:37
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant