-
Notifications
You must be signed in to change notification settings - Fork 387
Open
Labels
enhancementNew featuresNew features
Description
Problem description
Currently, the lock-file stores whether a Pypi package should be installed as editable or not. However, this has some downsides:
- If you change a package from editable to non-editable or vice-versa, the lock file has to be regenerated.
- Whether a package is editable or not is not defined in the name but it is currently stored in the package data part of the lock file. E.g.
This means that for every environment the package is now editable.
- kind: pypi name: foo version: 0.1.0 path: foo sha256: 5eb7d27a464b108fef2bb090ef1d2f62a2750e7bd625c70d2b00ef3f19a2edf7 editable: true
I see two solutions:
- Add
editableto a per environment section (similar toextras) and remove it from the package data. This still requires the lock file to be regenerated if the editableness of a package changes. - Remove it from the lock-file all together. This means we have to check at installation time if the package needs to be "re-installed".
I think I'm in favor of option 2 but I'm curious about other people's opinions.
glemaitre, 183amir, pmeier, dhirschfeld, ayman-chaos and 23 more
Metadata
Metadata
Assignees
Labels
enhancementNew featuresNew features