Skip to content
Discussion options

You must be logged in to vote

TL;DR: You can't.

the --mpy/--no-mpy option is only valid when a package is installed from the MicroPython packet index
That has precompiled .mpy binaries for different bytecode versions, (AFAIK version 6 and up)

If you want to offer both .mpy and .py versions then :

  • you can create two different package.jsons with different names / locations
  • you could run your own package index, but that seems a bit much for one pac…

Replies: 1 comment 2 replies

Comment options

Josverl
May 9, 2025
Collaborator Sponsor

You must be logged in to vote
2 replies
@DavesCodeMusings
Comment options

@Josverl
Comment options

Josverl May 9, 2025
Collaborator Sponsor

Answer selected by DavesCodeMusings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants