Would you accept wheel metadata in your /lib ?
Posted: Sat Jan 08, 2022 8:07 am
I'm preparing to update minipip in order to make managing MicroPython packages with minipip as similar to using pip as possible.
One of the new features would be supporting list and uninstall commands. For this to work, the install command should install some metadata along with actual modules. At the moment, the metadata installed by pip gets deleted before transferring the files to the target location.
I considered introducing a new lean metadata format for this, but re-using existing formats certainly has its benefits. So, if you did minipip install micropython-logging, would you accept having micropython-logging-0.5.2.dist-info folder next to micropython-logging folder in your /lib ? The folder would contain reduced set of wheel metadata -- RECORD (for knowing which files to delete when uninstalling) and trimmed METADATA with basic metadata. The total size of the metadata would be about 1 KB in this case.
PS. I recently noticed a remark somewhere (possibly under a GitHub issue), that Damien has plans for introducing another tool for managing packages besides or instead of upip. I'm not able to find this remark anymore. Do you know something about this?
One of the new features would be supporting list and uninstall commands. For this to work, the install command should install some metadata along with actual modules. At the moment, the metadata installed by pip gets deleted before transferring the files to the target location.
I considered introducing a new lean metadata format for this, but re-using existing formats certainly has its benefits. So, if you did minipip install micropython-logging, would you accept having micropython-logging-0.5.2.dist-info folder next to micropython-logging folder in your /lib ? The folder would contain reduced set of wheel metadata -- RECORD (for knowing which files to delete when uninstalling) and trimmed METADATA with basic metadata. The total size of the metadata would be about 1 KB in this case.
PS. I recently noticed a remark somewhere (possibly under a GitHub issue), that Damien has plans for introducing another tool for managing packages besides or instead of upip. I'm not able to find this remark anymore. Do you know something about this?