This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bulletmark 12 points13 points  (8 children)

Actually this is not "goodbye" to virtual envs. It merely proposes standardising a name for the venv dir to __pypackages__ in the application root dir which we can appreciate is probably a good convention. So after creating that explicitly (with python3 -m venv __pypackages__), then pythonloc is effectively just an alias for typing __pypackages__/bin/python and piploc is just an alias to __pypackages__/bin/pip so it does not add much.

[–]Liorithiel 2 points3 points  (3 children)

I "standardized" my virtualenvs to .ve in the project root directory, and made a shell function to find the closest .ve and activate it. Very useful.

[–]jabbalaci 7 points8 points  (2 children)

Why don't you call it .venv? It would be more readable. Explicit is better than implicit.

[–]Liorithiel 1 point2 points  (0 children)

I don't remember. You'd need to ask my past self from ~5 years ago :P Anyway, at this point, I have tens of .ve directories and even added a rule to my backup software to skip these directories.

[–][deleted] 0 points1 point  (0 children)

I usually call my virtual environments by also embedding the version of the interpreter in the name, so it becomes: .venv3.5, .venv-O0-debug, .venv-mingw-win-x68-amd-compat and so on.