Closed
Description
Issue
Run the following via msys2:
$ /c/Users/builder/AppData/Local/Programs/Python/Python39/Scripts/virtualenv.exe --no-pip --no-setuptools --no-wheel -p /c/Users/builder/AppData/Local/Programs/Python/Python39/python.exe /tmp/tmp.uw7eZfvJIO
$ source /tmp/tmp.uw7eZfvJIO/Scripts/activate
$ python
python: command not found
The content of /tmp/tmp.uw7eZfvJIO/Scripts/activate
contains VIRTUAL_ENV='C:\tools\msys64\tmp\tmp.uw7eZfvJIO'
, but it's expected to be VIRTUAL_ENV='/c/tools/msys64/tmp/tmp.uw7eZfvJIO'
, thus it can't locate python
.
I believe the legacy version handles this correctly here:
Lines 1742 to 1748 in 4c9899f
which contains:
VIRTUAL_ENV="$(if [ "$OSTYPE" "==" "cygwin" ]; then cygpath -u 'C:\tools\msys64\tmp\tmp.uw7eZfvJIO'; else echo '/C/tools/msys64/tmp/tmp.uw7eZfvJIO'; fi;)"
Environment
Provide at least:
- OS: Windows 7, using msys2 v20200903.0.0