You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
venv/scripts/common/activate should use uname instead of $OSTYPE to detect Cygwin and MSYS #112507
# on Windows, a path can contain colons and backslashes and has to be converted:
if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then
# transform D:\path\to\venv to /d/path/to/venv on MSYS
# and to /cygdrive/d/path/to/venv on Cygwin
export VIRTUAL_ENV=$(cygpath "__VENV_DIR__")
else
# use the path as-is
export VIRTUAL_ENV="__VENV_DIR__"
fi
$OSTYPE is not defined by POSIX. It's provided by bash and zsh, but may not be present in other shells like dash. The uname command is always available in any shell and should be used instead.
Activity
gh-112507: Detect Cygwin and MSYS with `uname` instead of `$OSTYPE` (G…
pythongh-112507: Detect Cygwin and MSYS with `uname` instead of `$OST…
pythongh-112507: Detect Cygwin and MSYS with `uname` instead of `$OST…
[3.12] pythongh-112507: Detect Cygwin and MSYS with `uname` instead o…
[3.12] gh-112507: Detect Cygwin and MSYS with `uname` instead of `$OS…