Even if build_spark.cmd is called repeatedly from the same shell. This prevents PATH from growing too long (w/ repeating venv path entries)
13 lines
318 B
Batchfile
13 lines
318 B
Batchfile
@echo off
|
|
|
|
@call %~dp0..\tools\ensure_venv.cmd
|
|
touch %~dp0..\src\lib\CMakeLists.txt
|
|
set venv_py_path=%~dp0..\..\.venv\Scripts\python
|
|
IF NOT "%PYTHONPATH%"=="%venv_py_path%" (
|
|
set "PYTHONPATH=%venv_py_path%"
|
|
set "PATH=%venv_py_path%;%PATH%"
|
|
)
|
|
@call python %~dp0..\tools\py\build_spark.py %*
|
|
|
|
EXIT /B %ERRORLEVEL%
|