Skip to content

How can I structure package.json to take advantage of --no-mpy option to mip? #17276

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

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

@Josverl
Comment options

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