Replies: 2 comments
-
I do not think there is a way to do this. It seems that you are looking for #4952 and #7935. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Something similar can be done with uv: [tool.uv]
environments = [
"sys_platform == 'linux'",
] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm in the process of setting up some cookiecutter templates for folks to use as a starting point for PyTorch projects. The difficulty of the Poetry +
torch
dep and repos aside, I'm trying to limit the scope that Poetry considers when generating a lockfile.Our environment will "only ever" have Macs— both arm64 and x86_64— and x86_64 Linux. I can safely exclude wheel retrieval and hashing for aarch64 Linux, Windows, etc.
I tried something like this, and some variations on it, but couldn't get what I wanted. Note that I don't want to put this marker on the dependency, because I want it to apply to all dependencies: not just
torch
.It would eventually just get, well, everything, i.e.
If my configuration worked, this
files
list would have only:How best can I do this? Without this, the initial
poetry lock
pulls down several gigabytes of files to get their hashes and those hashes will never be used.Beta Was this translation helpful? Give feedback.
All reactions