Skip to content

Support for build/install as dynamic native modules #43

Description

@jonnor

Hi. This is a fascinating project, great job!

The announcement video mentioned that right now one needs to rebuild entire MicroPython to use this module, which can be a bit tedious/tricky.

As you may be aware, MicroPython has support for building modules that can be packed into .mpy files and installed at runtime using mip install.
https://docs.micropython.org/en/latest/develop/natmod.html

This would make it considerably easier for people to get started. The support has improved a lot over the last year, though it still has some rough edges. More projects using this functionality would help further improve this unique and very nice feature of MicroPython.

To be applicable in practice it would probably be necessary to split into multiple independent modules, so that people can install and load only what they need.
It is possible to support both styles of building with the same code. I do this in emlearn-micropython, a Machine Learning package for MicroPython. Example: https://github.com/emlearn/emlearn-micropython/blob/master/src/emlearn_iir/iir_filter.c

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions