-
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
using poetry add 'package[all]'
doesn't install extra dependencies (happens only with 'all')
#7646
Comments
previously rejected, for better or worse, at #3369 |
So i tried as suggested in the documentation to install the optional groups poetry add "colour-science[optional,meshing]" This added correctly to my own [tool.poetry]
name = "color_test"
version = "0.1.0"
description = ""
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = ">=3.12,<3.13"
colour-science = {extras = ["optional","meshing"], version = "^0.4.4"}
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api" But in the installation the extras were ignored. Also running poetry install --all-extras changed nothing. Only direct installation of the dependencies made things work for me, which is not the idea of using extras, I guess. Am I missing something? |
Poetry groups are (at the moment) a poetry specific concept that does not propagate to the published wheel. They're for things like development dependencies, cicd pipeline stuff, documentation tools etc. Extras are an upstream python wheel thing, that get published to the wheel metadata. color-science has groups, it does not have extras. potentially here, poetry could/should warn that the requested extras don't exist. |
-vvv
option) and have included the output below.Issue
The issue is fairly simple. On a new poetry project, I used (I will report with the package used in case it helps):
poetry installs polars but no extras. Meanwhile, on an isolated environment, using
pip install 'polars[all]'
does install every extra dependency listed by that package.However, poetry works well if I specify which extras to install, e.g.:
works.
The text was updated successfully, but these errors were encountered: