asdf-python icon indicating copy to clipboard operation
asdf-python copied to clipboard

Setting multiple Python versions via `asdf shell` doesn't seem to work

Open cecep2 opened this issue 2 years ago • 2 comments

Thanks for this plugin! When I set multiple Python versions using asdf global or asdf local, everything works just as advertised and asdf current python says something like:

python          3.9.10 3.10.2   /Users/cecpe2/myproject/.tool-versions

However, when I use asdf shell python 3.10.2 3.9.10, asdf current python says:

python          3.10.2          ASDF_PYTHON_VERSION environment variable

Only the first version I listed is activate. Is this intended?

cecep2 avatar Feb 26 '22 22:02 cecep2

How would multiple active Python versions work in a shell? How would it know which one to use?

BrutalSimplicity avatar Mar 31 '22 06:03 BrutalSimplicity

You can set ASDF_PYTHON_VERSION environment variable with desired versions

RCristiano avatar Aug 02 '22 11:08 RCristiano