0

minipip -- tool for installing packages for CP and MP
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

minipip -- tool for installing packages for CP and MP

by aivarannamaa on Tue May 18, 2021 10:12 am

I have created a tool for installing packages from micropython.org and PyPI to MicroPython and CircuitPython devices.

A simple usage example:

  • minipip install --target G:\lib adafruit-circuitpython-ssd1306

Please see https://github.com/aivarannamaa/minipip for more details.

The same tool is behind the MicroPython/CircuitPython package manager of the just-released Thonny 3.3.10 (https://github.com/thonny/thonny/releases/tag/v3.3.10)

Looking forward to your feedback!

Best regards,
Aivar

aivarannamaa
 
Posts: 29
Joined: Tue Jan 30, 2018 8:30 am

Re: minipip -- tool for installing packages for CP and MP

by adafruit_support_mike on Tue May 18, 2021 10:07 pm

Interesting.. thanks for posting it!

adafruit_support_mike
 
Posts: 63729
Joined: Thu Feb 11, 2010 2:51 pm

Re: minipip -- tool for installing packages for CP and MP

by adafruit2 on Tue May 18, 2021 11:10 pm

@aivar - neat, were you able to use the requirements.txt files to auto-install dependencies?

in particular, we have just fixed micropython support for `blinka` so now folks can use 90% of our circuitpython libraries in micropython, as long as blinka is installed right

adafruit2
Site Admin
 
Posts: 20294
Joined: Fri Mar 11, 2005 7:36 pm

Re: minipip -- tool for installing packages for CP and MP

by aivarannamaa on Wed May 19, 2021 1:15 am

adafruit2 wrote:were you able to use the requirements.txt files to auto-install dependencies?


Yes, you can give requirements.txt to minipip and if a package has requirements, they are taken care of. It's just that version resolution for upip-compatible packages is not as advanced as in the newest pip versions. If the package has pip-compatible assets, then pip takes care of everything.

aivarannamaa
 
Posts: 29
Joined: Tue Jan 30, 2018 8:30 am

Please be positive and constructive with your questions and comments.