install.bat für Python virtual environment sowie etwaige Dependencies, die in einer requirements.txt in data definiert werden, erstellt
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
@echo off
|
||||||
|
call setenv.bat
|
||||||
|
if not exist %PROJECT%\.venv (
|
||||||
|
ECHO Initialisiere Python virtual environment...
|
||||||
|
python -m venv %PROJECT%\.venv --upgrade-deps
|
||||||
|
ECHO Erfolgreich.
|
||||||
|
|
||||||
|
call %PROJECT%\.venv\Scripts\activate.bat
|
||||||
|
|
||||||
|
if exist %PROJECT_LIB%\requirements.txt (
|
||||||
|
ECHO Installiere erforderliche Python Packages...
|
||||||
|
pip install -r %PROJECT_LIB%/requirements.txt -q
|
||||||
|
ECHO Erfolgreich
|
||||||
|
)
|
||||||
|
call %PROJECT%\.venv\Scripts\deactivate.bat
|
||||||
|
|
||||||
|
) else (
|
||||||
|
ECHO Virtual environment liegt bereits vor, siehe %PROJECT%\.venv!
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user