-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
Support configuring Python interpreter paths for different Python versions in .pdm.toml
#846
Comments
.pdm.toml
.pdm.toml
I've received another similar FR about this privately, but it proposed a different solution: Add a configuration item specifying the location to find Python interpreters, say you configure it as the pyenv home so that only pyenv pythons are listed. Because pyenv usually has only one Python for a given version, it should solve your problem? |
Maybe pyenv is not the right example though, because you can already configure it to expose only one version of each minor version ( |
Configuring the |
Honestly, I don't think only memorizing the result of I don't expect to change your mind immediately, but hope we could at least agree that
My guess is that your concerns are mainly around the complexity of implementation. Mind explain? |
Let me understand, the key point that makes you prefer configuration rather than memorizing is, em, transparency. Is it true? |
Sorry for the confusion, seems my previous understanding was wrong. To make sure I understand, in your proposal, pdm can remember the mapping from |
Is your feature request related to a problem? Please describe.
pdm use
requires users to manually select the interpreter path. When users need to switch between different Python versions often, this operation quickly becomes tedious.Describe the solution you'd like
IMHO, it makes sense to let users configure the interpreter path for different versions of Python. Reasons are
.pdm.toml
already supports settingpython.path
, but only to the current interpreter being used. This proposal is about enhancing the existing feature to make it more useful.The text was updated successfully, but these errors were encountered: