Installation log / package lock for mip #16683
Replies: 2 comments 3 replies
-
I think this sh/could be split in 2:
My current work-around for 1 is to create a And possibly the same for the |
Beta Was this translation helpful? Give feedback.
-
I didn't think about adding the lock file only for |
Beta Was this translation helpful? Give feedback.
-
Currently
mip
does not record any metadata about installed packages. This means you can't easily recall, which versions of which distributions have been installed.I propose changing
mip
to keep the log of installations in a file next to the installed packages. During each install, mip would open the file in append mode (so it doesn't need to worry about previous entries), record the requested package specifier together with the actual version / commit hash of the package and the target location (and possibly also the source URL) for each file that gets installed. This way the log file doubles as a lock-file for reproducible installs.Reproducible installs would not be the only gain. If devices had such log/lock file, IDE-s could easily download the exact same dependencies (but *.py instead *.mpy) into local development folder for use by code analysis / completion. It would also allow for tools, which list, remove and update packages.
If such a thing is wanted by the community and acceptable by the maintainers, I can create a PR.
Beta Was this translation helpful? Give feedback.
All reactions