mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 00:37:36 -06:00
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:
parent
ac4b5ab7fa
commit
1485ff338f
4
Make.bat
4
Make.bat
@ -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
|
||||
|
@ -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
|
||||
=====================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user