poetry: Parse wheel requirements Requires-Dist with platform markers | Torch 2.1.1+cu121 installation problem
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the FAQ and general documentation and believe that my question is not already covered.
Feature Request
I am on Windows 10 and I don’t need linux requirements.
Poetry
poetry show torch
shows that it need triton.
Torch 2.1.1+cu121 and similiar versions has this format of Requires-Dist.
Can you implement support for these cases?
pyproject.toml
[tool.poetry]
name = "moneyconv"
version = "0.1.0"
description = ""
authors = ["MrMarvel <seregakkk999@yandex.ru>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "~3.11"
jupyterlab = "^4.0.9"
torch = {version = "2.1.1", source = "torch"}
[[tool.poetry.source]]
name = "torch"
url = "https://download.pytorch.org/whl/cu121"
priority = "explicit"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Unsatisfied but working temporary solution: Downgrading to 2.0.1 with cu118. where there is no Requires-Dist for linux platform in torch package. pyproject.toml
[tool.poetry]
name = "moneyconv"
version = "0.1.0"
description = ""
authors = ["MrMarvel <seregakkk999@yandex.ru>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "~3.11"
jupyterlab = "^4.0.9"
torch = {version = "2.0.1", source = "torch"}
[[tool.poetry.source]]
name = "torch"
url = "https://download.pytorch.org/whl/cu118"
priority = "explicit"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 19 (7 by maintainers)
I think this features is connected with #8681