-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editable installs are broken #2916
Comments
@hoefling to save me from repeating myself this comment applies: #2725 (comment) Essentially, "editable installs" are non-standard practice introduced by Regarding the Related: #2452 |
@abn no, |
@hoefling as I mentioned before editable installs are a hack. The current mechanism relies on the Editable installs, as far as I can tell, were not a consideration for Including files being actively developed as EDIT: An unwanted side-effect here would be For your use case, I believe you will have to detect the existence of a (.venv) $ python -c "import importlib.metadata; print(importlib.metadata.files('foobar'))"
[PackagePath('/tmp/foobar/.venv/lib/python3.8/site-packages/foobar.pth'), PackagePath('/tmp/foobar/.venv/lib/python3.8/site-packages/foobar-0.1.0.dist-info/METADATA'), PackagePath('/tmp/foobar/.venv/lib/python3.8/site-packages/foobar-0.1.0.dist-info/INSTALLER'), PackagePath('/tmp/foobar/.venv/lib/python3.8/site-packages/foobar-0.1.0.dist-info/RECORD')] |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
0162486 introduced changes in metadata of the editable installs that are supported by neither
importlib.metadata
norpkg_resources
; in particular, the errors are due to the new layout that droppedegg-link
. Example tests:Both
test_importlib_metadata
andtest_pkg_resources
fail on current master, but pass on 1.0.10 tag.I also can't find any spec to the new editable install layout (partial dist-info plus the pth), only some discuss threads on a similar idea that isn't approved yet:
The text was updated successfully, but these errors were encountered: