Is there some reason why my python 3.12.10 venv has a default prompt that has extra parentheses?
I compared activate against python 3.13.3 and see these diffs
$ diff -U2 .py31{2,3}/bin/activate
--- .py312/bin/activate 2025-04-16 19:29:10.556166280 +0100
+++ .py313/bin/activate 2025-04-11 11:10:30.215483882 +0100
@@ -42,10 +42,10 @@
# transform D:\path\to\venv to /d/path/to/venv on MSYS and MINGW
# and to /cygdrive/d/path/to/venv on Cygwin
- VIRTUAL_ENV=$(cygpath /home/user/devel/reportlab/.py312)
+ VIRTUAL_ENV=$(cygpath /home/user/devel/reportlab/.py313)
export VIRTUAL_ENV
;;
*)
# use the path as-is
- export VIRTUAL_ENV=/home/user/devel/reportlab/.py312
+ export VIRTUAL_ENV=/home/user/devel/reportlab/.py313
;;
esac
@@ -55,5 +55,5 @@
export PATH
-VIRTUAL_ENV_PROMPT='(.py312) '
+VIRTUAL_ENV_PROMPT=.py313
export VIRTUAL_ENV_PROMPT
@@ -68,5 +68,5 @@
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
_OLD_VIRTUAL_PS1="${PS1:-}"
- PS1="("'(.py312) '") ${PS1:-}"
+ PS1="(".py313") ${PS1:-}"
export PS1
fi
which seems to show the parentheses have come from the activate. Is this intended?