Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow for editable pypi source dependencies when using
path
(p…
…refix-dev#1044) This PR adds the ability to do editable installs for pypi-packages. This requires the project to also use a `pyproject.toml` so that we know what build system to use. This PR takes great inspiration on how UV does it with some changes. 1. We resolve editables for multiple platforms by using the metadata separately. 2. We *only** actually build the wheel on install time. 3. There is some deviating installation logic because we can install directly from locked dependencies. I think that when this PR lands you mostly want to use editable installs for path based dependencies that you control, instead of regular path based dependencies. ## Locking For locking we actually lock whether the dependency is editable and also save a hash to the `pyproject.toml`, `setup.cfg`, or `setup.py` files. If any of these change, the lock file is invalidated, this is analogous to how UV does this for determining whether to re-install but their code uses the timestamp instead. --------- Co-authored-by: Bas Zalmstra <[email protected]> Co-authored-by: Ruben Arts <[email protected]>
- Loading branch information