Changes for page VirtualEnv

Last modified by David De La Harpe Golden on 2026/05/17 17:37

From version 13.1
edited by David De La Harpe Golden
on 2026/05/17 16:24
Change comment: There is no comment for this version
To version 7.1
edited by David De La Harpe Golden
on 2026/05/17 16:16
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -2,12 +2,12 @@
2 2  
3 3  * [[vex>>https://pypi.org/project/vex/]]
4 4  * [[virtualenvwrapper>>https://pypi.org/project/virtualenvwrapper/]]
5 -* [[virtualenvwrapper-win>>https://pypi.org/project/virtualenvwrapper-win/]] (if on windows)
5 +* [[virtualenvwrapper-win>>https://pypi.org/project/virtualenvwrapper-win/]]
6 6  
7 7  ...since virtualenv is now in the python stdlib, I have lately pared it down to two little helpers
8 8  
9 9  * ##mkve## - makes a new basic virtualenv.
10 -* ##ve## - launches a subshell with the virtualenv active - in contrast to the weird way official virtualenv ##activate## does within the current shell session i.e ##ve## is like ##vex## but less fancy.
10 +* ##ve## - launches a subshell with the virtualenv active - in contrast to the weird way official activate does within the current shell i.e like ##vex## but less fancy.
11 11  
12 12  {{code language="bash"}}
13 13  $ mkve BlahVenv
... ... @@ -21,8 +21,6 @@
21 21  
22 22  {{code language="bash"}}
23 23  #!/bin/bash
24 -# make a new python venv:
25 -# mkve SomeVenv
26 26  
27 27  if [ -e "$1" ] ; then
28 28   echo >&2 "Already exists. Use python -m venv ... directly for complex args."
... ... @@ -38,8 +38,6 @@
38 38  {{code language="bash"}}
39 39  
40 40  #!/bin/bash
41 -# use an existing python venv in a subshell, exit to exit:
42 -# ve SomeVenv
43 43  
44 44  if [ -f "$1/bin/activate" ]; then
45 45   exec bash --rcfile <(cat ~/.bashrc $1/bin/activate)
... ... @@ -50,9 +50,9 @@
50 50  {{/code}}
51 51  
52 52  
53 -== Shell Prompt ==
49 +## Shell Prompt ##
54 54  
55 -I have a fancy non-default prompt in my ##.bashrc## that shows a little snake if in a python vm
51 +I have a fancy non-default prompt in my ##~/.bashrc## that shows a little snake if in a python vm
56 56  
57 57  {{code language="bash"}}
58 58  # venvs themselves prefix these days, new ones created by stdlib honor this disable, allowing us to customize