Frozen modules in uPython version 1.12

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
lnsri22
Posts: 75
Joined: Fri Aug 17, 2018 12:16 pm
Location: India

Frozen modules in uPython version 1.12

Post by lnsri22 » Fri Feb 28, 2020 9:13 am

Hello Everyone!!

I have been trying to find a folder named module to put up my frozen modules.

Unfortunately there is no such folder as it were in 1.11

How do I get this done?

Thanks
lnsri22 :)

User avatar
jimmo
Posts: 2011
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Frozen modules in uPython version 1.12

Post by jimmo » Fri Feb 28, 2020 1:50 pm

The mechanism for freezing modules was updated in 1.12 to the new "manifest" system.

Look in ports/stm32/manifest.py (or the equivalent on esp32 or esp8266).

The idea is that you define your own board definition which inherits from the base manifest, rather than just having random files added to the main repo's module's directory, see ports/esp32/boards/TINYPICO for an example.

Also see https://github.com/peterhinch/micropyth ... -manifests

lnsri22
Posts: 75
Joined: Fri Aug 17, 2018 12:16 pm
Location: India

Re: Frozen modules in uPython version 1.12

Post by lnsri22 » Sun Mar 08, 2020 12:21 pm

Thanks Jimmo,

Got it working!!
lnsri22 :)

Post Reply