Open Holt59 opened 2 months ago
per https://github.com/python-poetry/poetry/issues/6409#issuecomment-1793440536, I wouldn't expect using a project's own extras as markers to work
this is at heart duplicate https://github.com/python-poetry/poetry-core/pull/613, which tries to make that work
Description
Following
pyproject.toml
from https://github.com/python-poetry/poetry/issues/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