asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
651 stars 56 forks source link

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

Open cecep2 opened 2 years ago

cecep2 commented 2 years ago

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?

BrutalSimplicity commented 2 years ago

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

RCristiano commented 2 years ago

You can set ASDF_PYTHON_VERSION environment variable with desired versions