Replies: 1 comment 8 replies
-
The library is easy to extend, just create a subclass of Here is an example in PDM: Lines 660 to 668 in 4618fc8 You can also modify the list of default providers by changing |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pdm finds python through findpython. This mechanism is extensible in the sense that findpython can learn to find python from new sources.
I would like to have a framework for finding python that is more configurable, flexible and uniform. The current downside with findpython is that it can be a bit haphazard - you might find 3.10 from system python but 3.9 from a pyenv install. You'd want to ensure uniformity to make it easier for you - for example to make sure all your python versions in use are installed the same way.
Let's say you have different strategies:
You would like to be able to configure: all your projects get their python from pyenv (asdf, rye, etc..) by default. In this configuration, pdm or findpython's mechanism only considers python versions from the configured source.
Some of the sources have the ability to install python on demand (pyenv, asdf, rye), even better then if we had a hook so that it would just fetch python using the configured source, if it was missing.
Beta Was this translation helpful? Give feedback.
All reactions