Support extensive Python environment discovery
We'd like to match a lot of the behavior vscode-python supports around finding different interpreters and environments, and to do that, there are a bunch of environment managers we should target. Ideally, we'll be looking at the following:
- [x] Venv
- [ ] Conda
- [ ] Poetry
- [ ] Hatch
- [ ] Pyenv
- [ ] Pixi
- [ ] ActiveState
We already have partial support for a lot of these when the environment is directly sourced for CLI usage, and in the IDE we are using vscode-python, but going through to make sure we're doing the right things in all of the above cases would be great to check.
Python Interpreter can also sometimes be found at .venv/Scripts instead of .venv/bin/python3
Hey @BenMawnMahlauNBTC, thanks for reporting, I'll take a look at adding a search for the interpreter there soon!
@BenMawnMahlauNBTC actually I just realized the way it's implemented now will work for finding at .venv/Scripts! Let me know if you start running into problems with that and we can open a new issue.
+1 for poetry
This issue has someone assigned, but has not had recent activity for more than 2 weeks.
If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.
Thank you for your contributions!
This issue has someone assigned, but has not had recent activity for more than 2 weeks.
If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.
Thank you for your contributions!
I'm gonna close this, since I think most environments are extensions on top of venv or conda. If there are others we need to look at explicitly handling, we can address in new issues as they come up