-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PEP508] Adding gpu or cuda specification in PEP 508 #581
Comments
This would be great! I was just about to ask for something like this as well. I'm already using the markers to switch packages between platforms. Adding Using the Pipfile, I'm currently switching between versions of PyTorch like so. I manually switch out the gpu version of pytorch when I'm on the GPU enabled machine.
|
@Froskekongen Now that I think about it, this would best be brought up on distutils-sig or pypa-dev for discussion, so I'm going to close this as we try to keep issues here as actual technical issues with PEPs and not feature requests. |
This is a use case related to conditional installs of versions of packages (e.g. tensorflow or pytorch) based on the presence of a cuda installation on the system.
The suggestion is to add a
cuda_installed
marker as part of the Environment Markers. This would enable systems like pipenv to installtensorflow
on cpu systems andtensorflow_gpu
on systems where cuda is installed.See this issue for more details.
The text was updated successfully, but these errors were encountered: