Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: allow upip to install packages by URL #46

Open
rvalle opened this issue Mar 11, 2020 · 2 comments
Open

Feature: allow upip to install packages by URL #46

rvalle opened this issue Mar 11, 2020 · 2 comments

Comments

@rvalle
Copy link

rvalle commented Mar 11, 2020

I am new to micropython, I am figuring out how to keep my application up to date over the air.

Since code is small and connectivity good, I was thinking on pip installing my python code on every boot.

upip seems to do most of it, download, unpack, install etc, but then:

Note: only Pycopy packages (usually, named pycopy-*) are supported

Why?

Otherwise, what is the recommended method to OTA update my micropython application?

@pfalcon
Copy link
Owner

pfalcon commented Mar 11, 2020

Note: only Pycopy packages (usually, named pycopy-*) are supported

That phrase means that upip can't install an arbitrary CPython package as published on PyPI. For example, don't expect to be able to install Django (and it to work).

Beyond that, upip is intended to run on the smallest systems (like esp8266), which means it should be small and featureset limited. I myself for example would love to make it install modules directly from git, like big pip can, but doubt that such feature fits in.

In that regard, installing a package directly from URL might be a compromise feature which won't take much code to add, I'll add that to my TODO.

For now, you have a choice to publish your package to PyPI, and install it from there.

@rvalle
Copy link
Author

rvalle commented Mar 11, 2020

Ok, I totally missed that.
upip will actually install packages that are published in PyPI directly on the target device?

That is almost as good... if they can be be installed on device start (boot.py).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants