- Notifications
You must be signed in to change notification settings - Fork1.1k
requests: Support file:// scheme for local files#989
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This allows installing packages using mipfrom an index served from the local fs.Signed-off-by: Dominik Heidler <dheidler@suse.de>
Thanks for the patch. But, I'm not sure this is a good addition. It doesn't seem to be supported by CPython's Also, some work was done recently with mip to allow installing from the local filesystem, seemicropython/micropython#12477 . Does that cover your use case? |
aylen384 commentedApr 10, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This does not cover my usecase as I can't install packages locally (on the local linux system) using mpremote. This patch was adding way less memory than patching (the non-mpremote) miphere, so that's why I did it like this. |
This allows installing packages using mip
from an index served from the local fs.
Usecases:
For local testing (especially but not necessarily limited to) using the unix port.
So you can locally generate an index from the repo and install packages from the index without starting a local http server.
And for packaging the complete index of this repo for the opensuse rpm (micropython-lib) without needing to launch an http server within the build environment. Previous we were using the makefile that was dropped from this repo so I decided to generate a local index and then install all packages contained in that index to the buildroot.