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% call %ACTIVATE_PATH%
echo Checking the requirements... echo Checking the requirements...
for /f "delims=" %%i in (%requirementsFile%) do ( :: Get the list of installed packages using pip freeze
pip freeze | findstr /c:%%i > nul for /f "tokens=1,* delims==" %%i in ('pip freeze') do (
if errorlevel 1 ( set installed[%%i]=%%j
echo Installing package: %%i )
pip install %%i --upgrade --quiet
:: 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
) )
) )