-
Notifications
You must be signed in to change notification settings - Fork 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
Install dependencies from pyproject.toml like from requirements.txt with -r #11584
Comments
I don’t think that installing dependencies and running a project uninstalled is a pattern we want to encourage. If you’re running your project uninstalled, it’s probably an application, not a library, and applications should be using a requirements file. See https://caremad.io/posts/2013/07/setup-vs-requirement/ |
But For example: These sections with |
That’s the decision of those projects to use |
So what's your suggestions for those modern application with |
See discussions in #4783. The final comment mentioned container image layers, which I think is a use case that’s more relevant now than back then. I still believe this belongs to workflow tools (e.g. pip-tools, poetry, pdm) instead of pip, however. |
This feature request seems to me to basically be a duplicate of the
This is an incorrect assumption I'd say. I came here through a request from someone wanting this for libraries, and I've had the same need myself. It seems pretty obvious to me: if you have your build and runtime dependencies listed in My suggestion here would be to:
|
@rgommers Hi, wouldn't |
Consolidating this into #8049, since this is strictly a subset of the request made there.
People don't wanna install the project itself, but only its dependencies. |
What's the problem this feature will solve?
Python encourage user to put all project infomation into one file: pyproject.toml , including dependencies.
But currently, users who want to just install dependencies and run a project, I mean not install it into site-packages, could not do this just with pip.
People have to use
pip-tools
generate requirements.txt first.Describe the solution you'd like
pip install -r pyproject.toml
Alternative Solutions
Additional context
No
Code of Conduct
The text was updated successfully, but these errors were encountered: