Files
docchecker/delivery/install.bat
T

15 lines
614 B
Batchfile

@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...
python-3.12.10-amd64.exe /quiet InstallAllUsers=0 PrependPath=1 Include_launcher=0 Include_test=0
echo [2/2] Python dependencies...
"%LocalAppData%\Programs\Python\Python312\python.exe" -m venv venv
if exist wheelhouse (
venv\Scripts\python.exe -m pip install --no-index --find-links wheelhouse -r requirements.txt
) else (
venv\Scripts\python.exe -m pip install -r requirements.txt
)
echo Done.
if /i not "%~1"=="NOPAUSE" pause
exit /b 0