cleanup: Fix benign typos in build scripts

Change BUILD_SPARK_PY var name to BUILD_PY (these scripts build other
projects than 'spark').
This commit is contained in:
John Colvin committed 2025-11-19 12:24:38 -05:00
1 parent a569fec6cc
commit e654bdbe6f
2 files changed
+6 -6

No files matched your search

+5 -5
View File
@@ -5,17 +5,17 @@ call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tool
set TOOLS_DIR=%~dp0
set REPO_DIR=%~dp0..
set BUILD_SPARK_PY=%TOOLS_DIR%\py\build_api_server.py
set BUILD_PY=%TOOLS_DIR%\py\build_api_server.py
if DEFINED VIRTUAL_ENV (
@REM We're already in a venv, just run build_spark.py (whether or not it is
@REM We're already in a venv, just run build_api_server.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_SPARK_PY% %*
@call python %BUILD_PY% %*
) else (
@REM Ensure the (default) venv is created, then run build_spark.py in it
@REM Ensure the (default) venv is created, then run build_api_server.py in it
@call %TOOLS_DIR%\ensure_venv.cmd
@call %TOOLS_DIR%\venv_exec.cmd python %BUILD_SPARK_PY% %*
@call %TOOLS_DIR%\venv_exec.cmd python %BUILD_PY% %*
)
EXIT /B %ERRORLEVEL%
+1 -1
View File
@@ -15,7 +15,7 @@ if DEFINED VIRTUAL_ENV (
@call python %BUILD_PY% %*
set RESULT=!ERRORLEVEL!
) else (
@REM Ensure the (default) venv is created, then run build_spark.py in it
@REM Ensure the (default) venv is created, then run build_data_stream.py in it
@call %TOOLS_DIR%\ensure_venv.cmd
@call %TOOLS_DIR%\venv_exec.cmd python %BUILD_PY% %*
set RESULT=!ERRORLEVEL!