-
Notifications
You must be signed in to change notification settings - Fork 84
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
Support poetry #49
Comments
It would be great if this could be supported as well. Currently poetry conflicts leading to e.g.
|
@MichaelAquilina From looking at the changes in branch next it seems there is different behaviour depending on whether For poetry specifically, it would be useful if it could generate the setup.py (poetry/issues/761 ) but that currently isn't supported and it also doesn't support inheriting system site packages (poetry/issues/1393). Using the suggestion in 761, I adopted create_setup.py and use that before running |
You are correct on both counts. Based on the discussion for the original merged PR it seems like installing in editable mode is not possible. You are right that this should be documented though. Would you like to open PR yourself and take a go? (Happy to do it myself but only seems fair to give you the opportunity since you found the issue :) ) Unfortunately my knowledge on poetry is very limited (I've only used it once, more than a year ago) so there might be mistakes in the implementation.
Considering my lack of knowledge in this area. Could you elaborate with step by step examples? PS: This is partly the reason why the |
Tagging @wouterweerkamp who added the |
I'd be happy to make a PR but I think a design should be chosen first. Having had a bit of an initial read into pyproject.toml/poetry I think I see the difference now. What I haven't yet dug into (had time to!) is how pip with pyproject.toml supports editable mode and whether it requires (currently?) a setup.py as well? As for poetry, one option might be to say if |
I'm afraid that generating artifacts without the users permission might be confusing. While its not consistent behaviour with the default (i.e. editable mode by default), I think I prefer it to the alternative.
I'm afraid I'm not sure of this myself :( I should have probably dug more into it before merging the change into |
Yes I think you're right. How about a configuration option? That way, the users have to set it in order for the generation to proceed. Another possible method to keep it consistent is just to create the venv and output a message to set the configuration option (as per 2 on #117 (comment) )
:-) |
No description provided.
The text was updated successfully, but these errors were encountered: