Skip to content

[question] mip: native mpy modules distribution #1129

Description

@o-murphy

While compiling my C library for micropython as a native mpy module, I wondered about distribution.

There are currently several proposed methods:

  1. mip packages installer - should works with mpremote mip alogside with on-board mip. (preffered for me)
  2. writing a oneline command for the REPL using requests.
  3. distributing the files as is (via github releases or another delivery method), where the user has to download and install them manually.

If 2 and 3 don't cause me any issues, except for the inconvenience, then I consider the mip option to be the priority because it is a documented way of delivering packages (with mpremote included). But I haven't found a recommended way to do this for packages containing native mpy for different platforms.

Since mip cannot automatically determine the target platform, it is necessary to get out of the situation using non-trivial methods such as distributing package.json separately for each platform using links/indexes/tags/branches/subdirectories whatewer, and the user must specify the platform during download.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions