alle Default files rein
This commit is contained in:
22
bin/install_py.bat
Normal file
22
bin/install_py.bat
Normal file
@@ -0,0 +1,22 @@
|
||||
@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!
|
||||
)
|
||||
Reference in New Issue
Block a user