Skip to content

Possible to alter dependencies of git sources? #1462

Answered by frostming
in03 asked this question in Q&A
Discussion options

You must be logged in to vote

Using overrides should do the trick:

[tool.pdm.overrides]
torch = "https://download.pytorch.org/whl/cu102/torch-1.12.1%2Bcu102-cp39-cp39-linux_x86_64.whl"

Or, if you want PDM to resolve corresponding wheels for different python versions or platforms, you can do this:

[[tool.pdm.source]]
url = "https://download.pytorch.org/whl/cu116"
verify_ssl = true
name = "pytorch"

[tool.pdm.overrides]
torch = "1.12.1+cu116"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@in03
Comment options

Answer selected by in03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants