Instruct pip to install only a specific section of the pyproject.toml
file.
#11489
Closed
1 task done
Labels
type: feature request
Request for a new feature
What's the problem this feature will solve?
Hey everyone. Using a
pyproject.toml
file, I am trying to find a way to tellpip
to install a specific set of dependencies without installing the required ones. This would make sense when you have docs, and you want to install packages related to generating the docs. In this case, it is not mandatory to install the required core dependencies of a given package. Take the following as an example ofpyproject.toml
file:Running
pip install -e ".[docs]"
will result independencies
being installed first. I also triedpip install --no-deps -e ".[docs]"
which resulted in the same behavior.Describe the solution you'd like
Allow pip to install a specific set of dependencies without the
dependencies
section as described above, something like:pip install --no-deps-install -e ".[docs]"
Alternative Solutions
Not sure at the moment.
Additional context
The main reason for this is to get rid of every instance of the
requirements.txt
file and emphasize following the pep-0631 specs. I am not sure if this feature already exists in pip. That's pretty much it. Have a nice day/evening.Code of Conduct
The text was updated successfully, but these errors were encountered: