Don't use the venv to create the venv on Windows as it doesn't allow python.exe to be relocated on Windows. Use the tried and tested virtualenv instead. Fixes #5595

This commit is contained in:
Dave Page 2020-06-09 16:28:25 +01:00
parent ac4b5ab7fa
commit 1485ff338f
2 changed files with 7 additions and 1 deletions

View File

@ -169,7 +169,9 @@ REM Main build sequence Ends
IF NOT EXIST "%BUILDROOT%" MKDIR "%BUILDROOT%"
CD "%BUILDROOT%"
"%PGADMIN_PYTHON_DIR%\python.exe" -m venv venv
REM Note that we must use virtualenv.exe here, as the venv module doesn't allow python.exe to relocate.
"%PGADMIN_PYTHON_DIR%\Scripts\virtualenv.exe" venv
XCOPY /S /I /E /H /Y "%PGADMIN_PYTHON_DIR%\DLLs" "%BUILDROOT%\venv\DLLs" > nul || EXIT /B 1
XCOPY /S /I /E /H /Y "%PGADMIN_PYTHON_DIR%\Lib" "%BUILDROOT%\venv\Lib" > nul || EXIT /B 1

View File

@ -23,6 +23,10 @@ choco install -y bzip2 cmake diffutils gzip git innosetup nodejs-lts python str
pip install --upgrade pip
6) Install virtualenv
pip install virtualenv
Building dependencies
=====================