14 lines
580 B
Batchfile
14 lines
580 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.
|
|
exit /b 0 |