Activate Python virtual environment on Windows during configuration

This commit is contained in:
Dan Paulat 2025-05-28 19:59:14 -05:00
parent ac475999f5
commit 0e90f8a7a1
10 changed files with 95 additions and 8 deletions

View file

@ -6,9 +6,19 @@
@set generator=Visual Studio 17 2022
@set qt_base=C:/Qt
@set qt_arch=msvc2022_64
@set venv_path=%script_dir%\..\.venv
:: Assign user-specified build directory
@if not "%~1"=="" set build_dir=%~1
@if not "%~1"=="" set build_dir=%~f1
:: Assign user-specified Python Virtual Environment
@if not "%~2"=="" (
if /i "%~2"=="none" (
set venv_path=
) else (
set venv_path=%~f2
)
)
:: Perform common setup
@call %script_dir%\lib\setup-common.bat