Changes for page VirtualEnv
Last modified by David De La Harpe Golden on 2026/05/17 17:37
From version
2.1
edited by David De La Harpe Golden
on 2026/05/17 16:11
on 2026/05/17 16:11
Change comment:
There is no comment for this version
To version
6.1
edited by David De La Harpe Golden
on 2026/05/17 16:14
on 2026/05/17 16:14
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -7,9 +7,14 @@ 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 activate does it your_current_shell i.e 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 +$ mkve BlahVenv 14 +$ ve BlahVenv 15 +$ pip install av 16 +$ exit 17 +{{/code}} 13 13 14 14 15 15 == mkve == ... ... @@ -22,11 +22,14 @@ 22 22 else 23 23 exec python -m venv "$1" 24 24 fi 25 -{{code}} 26 26 31 +{{/code}} 32 + 33 + 27 27 == ve == 28 28 29 29 {{code language="bash"}} 37 + 30 30 #!/bin/bash 31 31 32 32 if [ -f "$1/bin/activate" ]; then ... ... @@ -34,7 +34,8 @@ 34 34 else 35 35 echo >&2 "Missing Python Virtual Env (should have venv/bin/activate script)" 36 36 fi 37 -{{code}} 38 38 46 +{{/code}} 39 39 40 40 49 +