-
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
PEP-517 and pip install --editable with pip 19 #1279
Comments
@albireox Interesting. do you know what specific change in pip caused this? |
I think the two relevant conversations are pypa/pip#6314 and pypa/pip#6334. |
If I'm reading those two issues correctly, I think the summary is:
|
I think the problem is not that there is a I don't understand the internal of poetry enough but I think the workaround would require creating a temporary |
@albireox Poetry already does create a setup.py. I think it's the pyproject.toml that's the problem, because PEP 517, which says what to do if there's a pyproject.toml, does not support editable installs. |
I think that's correct. But ultimately pip fails because there isn't a setup.py file. If there were, I think it would run that and ignore the |
Ok I just tried this. Poetry already creates and deletes a setup.py during |
That sounds like a good temporary solution. This could be a flag in the |
I have also found myself trying to "catch" the generated |
Trying to solve a different issue (see #1516) I came across a solution that seems to also fix this problem. See #1516 (comment) and this repo. Basically one can create a custom |
From following the discussions in PyPA, I believe the situation is basically:
If somebody wants to take a crack at the proof of concept, a specification is laid out here. I don't think it would be too difficult to get the ball rolling. |
Hello, this is not an issue by poetry, as others already pointed out. So I will close this. A workaround similar to @albireox 's suggestion is to run fin swimmer |
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. |
Question
Hi,
Apologies if this has been answered before but I've looked at a number of issues and discussions about this and I'm still confused about the details.
As of pip 19.2.1 it is not possible anymore to do
pip install -e .
on a poetry-managed project with apyproject.toml
regardless of whether thebuild-system
is defined. As I understand it, this was done so on purpose.Is there a working workaround around this issue? In my organisation we work with multiple projects that are not in PyPI and that are not even intended to be installed to site-packages. We do
python setup.py build
and then add the resulting build directory to PYTHONPATH. It may be argued this is not good practice but ...I've been really liking poetry but this is kind of a dealbreaker for me. I can convince people in my project to do
pip install -e .
instead ofpython setup.py build
(and yet I'll get complaints) but anything beyond that, such as forcing people to use poetry for building the project, is not really workable.Alternatively, is there a way to generate a
setup.py
from thepyproject.toml
? I assume there is since the distribution source file contains one. If so, maybe it could be added topoetry install
as an option that generates thesetup.py
, the same way thepoetry.lock
file is generated. It's not a good solution but it would solve the problem for now.The text was updated successfully, but these errors were encountered: