23 lines
786 B
Batchfile
23 lines
786 B
Batchfile
@echo off
|
|
REM ================================================================
|
|
REM PLANTPLAN - Python Virtual Environment einrichten
|
|
REM ================================================================
|
|
REM Erstellt .venv und installiert Abhängigkeiten aus requirements.txt
|
|
REM ================================================================
|
|
|
|
call "%~dp0setenv.bat"
|
|
|
|
if not exist "%PROJECT%\.venv" (
|
|
echo Initialisiere Python virtual environment...
|
|
py -m venv "%PROJECT%\.venv" --upgrade-deps
|
|
echo Erfolgreich.
|
|
|
|
call "%PROJECT%\.venv\Scripts\activate.bat"
|
|
echo Installiere erforderliche Python Packages...
|
|
pip install -r "%PROJECT%\requirements.txt" -q
|
|
echo Erfolgreich.
|
|
deactivate
|
|
) else (
|
|
echo Erforderliche Python Packages bereits installiert!
|
|
)
|