-
Notifications
You must be signed in to change notification settings - Fork 90
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
Developer installation #115
Comments
Thanks for bringing this up. That's indeed a limitation of the technique used by There are two more options you could consider here:
Explicitly mark the dependency as non-editable in pyproject.toml If you add [tool.poetry.dependencies]
python = "^3.8"
-my-dependency = {path = "../my-dependency"}
+my-dependency = {path = "../my-dependency", develop = false} Remove the editable option from the generated requirements file You could try to simply remove the leading You'll have to be careful to run Essentially you'd do something like this in your with open(requirements.name) as io:
lines = list(io)
with open(requirements.name, mode="w") as io:
for line in lines:
if line.startswith("-e "):
line = line[len("-e ") :]
io.write(line) It seems that this path may lead to trouble, so I'd probably go with the first option. |
Thanks for your suggestions. I'll see what works best... I actually came across this one, which I feel will solve all these issues, if it were to be implemented: python-poetry/poetry#1644 If such groups were supported, we could skip using pip altogether. |
Hello and thank you for your great work on this setup! ❤️ 🤘
With your nox + poetry setup, it is currently not supported to perform a developer installation in conjunction with your
install_with_constraints
function.I am adding something like this to my
pyproject.toml
:And if I then run one of my nox sessions, I get this:
This I get because pip is being used to conduct the installation and I guess that there is a limitation to what pip can currently do. The entry in the temporary constraints text file is:
-e ../my-dependency
I'm wondering if this is a road worth pursuing, so I created this issue.
Perhaps I could remove the entries in the constraints file starting with
-e
. For any dependency removed, I could perhaps build a wheel using thepep517
module and then finally install this wheel via pip and the constraints file.Do you see any better alternative to this?
It would be nice to avoid the build and just do the install straight away, but I don't know if any tool supports this right now.
The text was updated successfully, but these errors were encountered: