Poetry lock does not include explicit sources for conditional packages #9537
Labels
area/solver
Related to the dependency resolver
area/sources
Releated to package sources/indexes/repositories
kind/bug
Something isn't working as expected
status/triage
This issue needs to be triaged
Description
Following
pyproject.toml
from #6409 to allow user to install CPU or GPU versions of torch viapoetry install -E cpu --with cpu
orpoetry install -E cuda --with cuda
.CUDA installation works fine, but CPU does not, throws a
Repository "pytorch-cpu" does not exist.
. When checking thepoetry.lock
file, the explicit sourcepytorch-cpu
is missing and I cannot find a way to include it.Workarounds
No workaround for now, I am completely stuck.
Poetry Installation Method
install.python-poetry.org
Operating System
Ubuntu 24.04
Poetry Version
1.8.3
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: