Page 1 of 1

PyPi and upip

Posted: Fri May 15, 2020 8:24 pm
by patrickw
As a n00b but a decently technical n00b, I really got caught up with pip and upip.

I think one of the main issues is that when you look on PyPi for packages, the site says you can `pip install` the package, which I now know is not true. ;-)

Has anyone discussed with PyPi about allowing for the how to install in the top banner to say upip instead of pip ?

Another option would be to add a big "THIS IS MICROPYTHON USE UPIP." to the top of all the package descriptions, but that seems less elegant.

Thanks,
-p

Re: PyPi and upip

Posted: Fri May 15, 2020 8:47 pm
by patrickw
Specifically this would be for any packages which match the filter : Programming Language :: Python :: Implementation :: MicroPython

https://pypi.org/search/?c=Programming+ ... &q=&page=2

Re: PyPi and upip

Posted: Tue Jul 28, 2020 5:56 am
by aivarannamaa
It would be also nice if pip was enhanced to support micropython packages. Then you could use simple `pip download` for preparing a lib directory for non-networked devices, instead of requiring a copy of Unix micropython.

Re: PyPi and upip

Posted: Wed Jul 29, 2020 7:11 pm
by pythoncoder
aivarannamaa wrote:
Tue Jul 28, 2020 5:56 am
It would be also nice if pip was enhanced to support micropython packages. Then you could use simple `pip download` for preparing a lib directory for non-networked devices, instead of requiring a copy of Unix micropython.
There is an alternative micropip which runs on CPython and downloads to your PC. It has been tested on Linux, Windows and OSX.

Re: PyPi and upip

Posted: Wed Jul 29, 2020 8:51 pm
by aivarannamaa
Thanks, Peter! I already found micropip and it looks like a good solution!

Please note!

Posted: Fri Jul 31, 2020 6:45 am
by pythoncoder
Be aware that upip (and micropip) have a special feature: they access a specific MicroPython repository controlled by the maintainers. If a package is found there, it is loaded in preference to the one on PyPi. This is done to ensure compatibility: some (purportedly standard) library modules on PyPi require special forks of MicroPython.