@echo off REM One-time install: Python (current user) + deps (wheelhouse or PyPI). cd /d %~dp0 echo [1/2] Python setup (quiet, current user), takes ~1 min... if exist python-3.12.10-amd64.exe ( python-3.12.10-amd64.exe /quiet InstallAllUsers=0 PrependPath=1 Include_launcher=0 Include_test=0 ) else ( echo Python installer not found here - skipping, expecting Python already installed... ) echo [2/2] Python dependencies... set "REQ=requirements.txt" if not exist "%REQ%" set "REQ=..\requirements.txt" if not exist "%REQ%" ( echo ERROR: requirements.txt not found in delivery or parent folder if /i not "%~1"=="NOPAUSE" pause exit /b 1 ) if not exist venv\Scripts\python.exe ( "%LocalAppData%\Programs\Python\Python312\python.exe" -m venv venv || ( echo ERROR: failed to create venv - is Python installed? if /i not "%~1"=="NOPAUSE" pause exit /b 1 ) ) if exist wheelhouse ( venv\Scripts\python.exe -m pip install --no-index --find-links wheelhouse -r "%REQ%" ) else ( venv\Scripts\python.exe -m pip install -r "%REQ%" ) echo Done. if /i not "%~1"=="NOPAUSE" pause exit /b 0