Closed daquintero closed 2 months ago
Actually closing this as when I did the first search of issues, this issue seems to discussing this even if the title of the issue could be improved so it's easier to find this https://github.com/python-poetry/poetry/issues/8322
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Description
Hi, not sure if I should raise this with pip-
setuptools
specifically, so thanks for the help guiding me on who to point this towards. Not sure if this is the expected behaviour either?We recently ran into an issue with one of our projects on this. In summary, in our
pyproject.toml
reproducible at the state below we have:https://github.com/flexcompute/tidy3d/blob/6f6371606e83b18eca2b73579f02ff6a4e4de357/pyproject.toml#L104
The
flax
dependency is defined as an optional dependency in the pyproject.toml, however, we forgot to add it onto an extra group. What happened was that anytime we would do:pip install -e .
at that commit state for example, it would also installflax
alongside the core base dependencies. This was with:Running:
pip install -e .
:However, when I install the package with
poetry install
,flax
is not installed:Workarounds
When
flax
is included in an extra group, then this is not a problem as both pip and poetry work as expected.Poetry Installation Method
pipx
Operating System
Ubuntu 22.04
Poetry Version
Poetry (version 1.8.2)
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
Poetry Runtime Logs