From efe09eb1b7263ca1bfd7dfd79bbc88133da39bc0 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Mon, 17 Jun 2024 11:30:50 -0400 Subject: [PATCH] cleanup: Fix benign typos in build scripts Change BUILD_SPARK_PY var name to BUILD_PY (because these scripts to actually build 'spark') --- tools/build_api_server.cmd | 10 +++++----- tools/build_data_stream.cmd | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/build_api_server.cmd b/tools/build_api_server.cmd index c11f5bdec..e156fade2 100644 --- a/tools/build_api_server.cmd +++ b/tools/build_api_server.cmd @@ -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% diff --git a/tools/build_data_stream.cmd b/tools/build_data_stream.cmd index 12594a069..1b466782a 100644 --- a/tools/build_data_stream.cmd +++ b/tools/build_data_stream.cmd @@ -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_data_stream.py +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_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_data_stream.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%