Add files via upload

This commit is contained in:
Deniz Şafak
2024-03-15 02:01:57 +03:00
committed by GitHub
parent d88e46d4ec
commit 40e91f2b72
+10 -5
View File
@@ -44,11 +44,16 @@ echo Activating virtual environment...
call %ACTIVATE_PATH%
echo Checking the requirements...
for /f "delims=" %%i in (%requirementsFile%) do (
pip freeze | findstr /c:%%i > nul
if errorlevel 1 (
echo Installing package: %%i
pip install %%i --upgrade --quiet
:: Get the list of installed packages using pip freeze
for /f "tokens=1,* delims==" %%i in ('pip freeze') do (
set installed[%%i]=%%j
)
:: Compare with the requirements from the requirements.txt file
for /f "tokens=1,* delims==" %%i in (%requirementsFile%) do (
if not "!installed[%%i]!"=="%%j" (
echo Installing package: %%i==%%j
pip install %%i==%%j --upgrade --quiet
)
)