-
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
Projects with extension modules no longer installed in editable mode #8377
Comments
if you intend for someone to look at this please provide a complete reproducible example. eg a toy github repository. poetry just shells out to pip here - does |
Thanks for the quick response! See: https://github.com/robbotorigami/poetry-editable-extensions/tree/main To replicate what I'm seeing: pipx install --force poetry=={VERSION}
poetry env remove --all
poetry install
poetry run python -c 'from example import modulea; print(modulea.__file__)' For me with
python3.11 -m venv venv
source venv/bin/activate
pip install -e .
python -c 'from example import modulea; print(modulea.__file__)' On the main branch (with While I was looking at pip's documentation, it seems that if no pyproject.toml is available, it defaults to using Based on this, I think there's some subtle difference to the behavior of the masonry backend when building an editable wheel with / without an extension module (and vs setuptools). I built a wheel using each (with I think that this is due to the way the WheelBuilder._build function is written, it seems like it always copies the built library into the wheel regardless of if it is performing an editable install. |
sounds like you're doing great - submit a merge request when you're ready! |
Now that I know where the issue is coming from I was able to identify this PR: python-poetry/poetry-core#335 , which seems to address the problem. |
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. |
-vvv
option) and have included the output below.Issue
I've been experiencing an issue with poetry for projects that have compiled extension modules. When installing with
poetry install
, the package is not installed in editable mode. This does not happen with projects that do not contain extension modules, and does not occur for poetry 1.5.1. I took a look through the changelog for 1.6.0 and found this relevant comment by Teagum in PR #7975 , but I didn't see any follow up or issues that captured this.The text was updated successfully, but these errors were encountered: