bpo-38899: virtual environment activation for fish should use `source` (GH-17359)
The previously documented use of `.` is considered deprecated (https://fishshell.com/docs/current/commands.html#source). https://bugs.python.org/issue38899 Automerge-Triggered-By: @brettcannon
This commit is contained in:
parent
d68b592dd6
commit
84b1ff6560
|
@ -104,7 +104,7 @@ directory containing the virtual environment):
|
|||
+=============+=================+=========================================+
|
||||
| POSIX | bash/zsh | $ source <venv>/bin/activate |
|
||||
+-------------+-----------------+-----------------------------------------+
|
||||
| | fish | $ . <venv>/bin/activate.fish |
|
||||
| | fish | $ source <venv>/bin/activate.fish |
|
||||
+-------------+-----------------+-----------------------------------------+
|
||||
| | csh/tcsh | $ source <venv>/bin/activate.csh |
|
||||
+-------------+-----------------+-----------------------------------------+
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This file must be used with ". bin/activate.fish" *from fish* (http://fishshell.org);
|
||||
# you cannot run it directly.
|
||||
# This file must be used with "source <venv>/bin/activate.fish" *from fish*
|
||||
# (http://fishshell.org); you cannot run it directly.
|
||||
|
||||
function deactivate -d "Exit virtualenv and return to normal shell environment"
|
||||
# reset old environment variables
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
Update documentation to state that to activate virtual environments under
|
||||
fish one should use `source`, not `.` as documented at
|
||||
https://fishshell.com/docs/current/commands.html#source.
|
Loading…
Reference in New Issue