Files
spark/tools/build_data_stream.cmd
John Colvin 3842efcef1 build: Define build py requirements in separate files
No need to install backend build deps when building the front-end, and
vice versa. The build scripts (build_spark.cmd, build_sparkd.sh, etc.)
automatically install only the necessary requirements now.

Note: We'll keep the monolith requirements.txt file around (at least for
now), as it includes more than just build deps (e.g., numpy, pandas, and
jupyter for data analysis; pybit for bybit plugins, etc.).
2026-02-03 16:57:32 +00:00

25 lines
797 B
Batchfile

@echo off
setlocal
setlocal enabledelayedexpansion
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\VsDevCmd.bat"
set TOOLS_DIR=%~dp0
set REPO_DIR=%~dp0..
set BUILD_PY=%TOOLS_DIR%\py\build_data_stream.py
if DEFINED VIRTUAL_ENV (
@REM We're already in a venv, just run build_data_stream.py (whether or not it is
@REM the 'right' venv is the caller's responsibility)
echo "Building in the current venv '%VIRTUAL_ENV'"
@call python %BUILD_PY% %*
set RESULT=!ERRORLEVEL!
) else (
@REM Ensure the (default) venv is created, then run build_data_stream.py in it
@call %TOOLS_DIR%\ensure_venv.cmd -r %TOOLS_DIR%\py\requirements-data_stream.txt
@call %TOOLS_DIR%\venv_exec.cmd python %BUILD_PY% %*
set RESULT=!ERRORLEVEL!
)
EXIT /B !RESULT!