Don't use virtualenv to create the venv on Windows.

This commit is contained in:
Dave Page 2020-06-01 10:32:41 +01:00
parent f4750f0096
commit 67c978b7a4
2 changed files with 3 additions and 5 deletions

View File

@ -169,7 +169,7 @@ REM Main build sequence Ends
IF NOT EXIST "%BUILDROOT%" MKDIR "%BUILDROOT%"
CD "%BUILDROOT%"
"%PGADMIN_PYTHON_DIR%\Scripts\virtualenv.exe" venv
"%PGADMIN_PYTHON_DIR%\python.exe" -m venv 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

@ -19,11 +19,9 @@ Choose the Desktop development with C++ option.
choco install -y bzip2 cmake diffutils gzip git innosetup nodejs-lts python strawberryperl wget yarn
5) Upgrade pip (this may give a permissions error that can be ignored) and
install the virtualenv package:
5) Upgrade pip (this may give a permissions error that can be ignored):
pip install --upgrade pip
pip install virtualenv
Building dependencies
=====================
@ -115,7 +113,7 @@ yarn run bundle
3) Create a virtual env
cd pgadmin4
python -m venv
python -m venv venv
pip install -r web\regression\requirements.txt
pip install sphinx