Files
spark/tools/buildspark.cmd
T

32 lines
843 B
Batchfile

@echo off
if not exist %~dp0\..\.venv27 (
CALL :create_venv27
)
if not exist %~dp0\..\.venv39 (
CALL :create_venv39
)
touch %~dp0\..\src\lib\CMakeLists.txt
@call %~dp0\..\.venv39\Scripts\activate.bat
@call python %~dp0\..\tools\buildspark.py %*
EXIT /B %ERRORLEVEL%
:create_venv27
echo Creating python27 virtual environment
@call C:\Python27\Scripts\virtualenv %~dp0\..\.venv27
@call %~dp0\..\.venv27\Scripts\activate.bat
@call %~dp0\..\.venv27\Scripts\pip install -r %~dp0\..\requirements27.txt
@call deactivate
EXIT /B 0
:create_venv39
echo Creating python39 virtual environment
@call python -m venv %~dp0\..\.venv39
@call %~dp0\..\.venv39\Scripts\activate.bat
@call %~dp0\..\.venv39\Scripts\pip install -r %~dp0\..\requirements39.txt
@call deactivate
EXIT /B 0