requests: Support file:// scheme for local files#989
Open
aylen384 wants to merge 1 commit intomicropython:masterfrom
Open
requests: Support file:// scheme for local files#989aylen384 wants to merge 1 commit intomicropython:masterfrom
aylen384 wants to merge 1 commit intomicropython:masterfrom
Conversation
This allows installing packages using mip from an index served from the local fs. Signed-off-by: Dominik Heidler <dheidler@suse.de>
Member
|
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, see micropython/micropython#12477 . Does that cover your use case? |
Contributor
Author
|
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) mip here, so that's why I did it like this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.