Files
spark/tools/buildspark.cmd
T

21 lines
515 B
Batchfile

@echo off
if not exist %~dp0\..\.venv (
CALL :create_venv
)
touch %~dp0\..\src\lib\CMakeLists.txt
@call %~dp0\..\.venv\Scripts\activate.bat
@call python %~dp0\..\tools\buildspark.py %*
EXIT /B %ERRORLEVEL%
:create_venv
echo Creating python virtual environment
@call python -m venv %~dp0\..\.venv
@call %~dp0\..\.venv\Scripts\activate.bat
@call pip install --upgrade pip
@call %~dp0\..\.venv\Scripts\pip install -r %~dp0\..\requirements.txt
@call deactivate
EXIT /B 0