diff options
-rw-r--r-- | etc/evergreen.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index d6fea62010e..11f90f1e5e6 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -1232,13 +1232,16 @@ functions: if command -V cygpath; then # Sad note: We have to use the Windows path instead of the posix path here. # Otherwise, virtualenv may mistakenly resolve paths relative to c:\cygdrive. + # Creating a virtualenv in cygwin with 'python -m venv', will not work correctly + # since the paths will be wrong. We need to use virtualenv and specify the + # python path as 'C:\python\python_version' python_loc=$(cygpath -w $python_loc) venv_dir="$(cygpath -w "$venv_dir")" + "$virtualenv_loc" --python "$python_loc" --system-site-packages "$venv_dir" + else + "$python_loc" -m venv --system-site-packages "$venv_dir" fi - # Set up virtualenvs in ${workdir} - "$virtualenv_loc" --python "$python_loc" --system-site-packages "$venv_dir" - export VIRTUAL_ENV_DISABLE_PROMPT=yes # Not all git get project calls clone into ${workdir}/src so we allow |