Repository navigation
omip: install only the modules a partly frozen package lacks - #844
Merged
Merged
Conversation
…it lacks A firmware with an older copy of a package frozen in got the whole package copied to /lib, where only the modules added since would ever be imported. Now just those land. A build that leaves modules out on purpose names them in a frozen _omip_left_out module, and omip doesn't install those either.
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.
When a firmware has part of a package frozen in,
omip.installcopied the whole package to/lib. Since.frozencomes first onsys.path, only the modules the firmware lacked were ever imported from there. On a small board that copy filled the filesystem.Now
omipinstalls just the missing modules and says so (Installing only medialink of omnipython). A package that is wholly frozen is still skipped, as before.A build that leaves modules out on purpose to save flash names them in a frozen
_omip_left_outmodule (MODULES = (...)).omiptreats those as present and doesn't install them, so the filesystem the build made room in stays free. The ESP32 Audio Kit firmware is the first to do this: it leaves hmilink, medialink, mp4mux and usb_hid out ofomnipython.Tests: three new cases in
tests/test_omip.py(partly frozen, left out on purpose, no marker). The first two fail on main. All 85 tests in the file pass.