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
Manpage wording around --list
and virtual environments confusing
#311
Comments
Ok, I think this is user error (or at least, user misunderstanding):
This is, or course, the correct value for the venv. The different behaviour of
Note that it says "except activated virtual environment". This seems to be exactly the opposite of what happens: it does list an activated environment, but not an "implicit" (?) environment. So, perhaps this could be changed into a feature request: is there any way to query |
I can see how that wording is a bit awkward. In my head, the virtual environment in
#74 . It's more of a current technical limitation in how things are designed and to match what the Python Launcher for Windows does as some people parse the output for globally installed interpreters and don't care about the virtual environment helper.
|
--list
and virtual environments confusing
Well, the past-participle "activated" implies to me that you've actually done something to activated. But in any case the behaviour after explicitly running
I admit I don't understand this use case (and I've never used python or much of anything else on windows, so that bit of consistency doesn't matter to me...) To me, a way to see all currently-available environments, virtual or otherwise, seems like a much more obvious use case. Is it a proper technical limitation of the implementation (i.e., would it be difficult to implement)? Or would
This seems like exactly the kind of inside knowledge that |
It requires a (planned) rewrite of the internals in how it handles environment discovery in a more uniform way.
I don't know if the exclamation point is quite necessary (I'm starting to feel overly criticized for doing the best I can with a project I do in my spare time), but for me, the Python Launcher for Unix isn't meant to hide technical details at all. All it's doing is trying to shave off some sharp edges that crop up due to how As stated at https://python-launcher.app:
There's nothing there about hiding "insider knowledge" and I'm sorry if the docs were not clear about that and you feel misled. |
Hi Brett, Thanks for your quick responses and willingness to think about my suggestions. I really appreciate the work you put into |
Describe the bug
py
is not finding an inactive (but extant) virtual environment even when a virtual environment has been created in a.venv
directory.To Reproduce
Expected behaviour
py --list
should show the venv created previously, even if.venv/bin/activate
not explicitly run.System Details (please complete the following information):
The text was updated successfully, but these errors were encountered: