Show sdkit version during startup

This commit is contained in:
cmdr2 2022-12-25 16:38:37 +05:30
parent b6f1194c93
commit 32bab80508
2 changed files with 6 additions and 2 deletions

View File

@ -76,7 +76,7 @@ if "%ERRORLEVEL%" EQU "0" (
set PYTHONNOUSERSITE=1
set PYTHONPATH=%INSTALL_ENV_DIR%\lib\site-packages
call >nul pip install --upgrade sdkit || (
call pip install --upgrade sdkit -q || (
echo "Error updating sdkit"
)
) else (
@ -93,6 +93,8 @@ if "%ERRORLEVEL%" EQU "0" (
)
)
python -c "from importlib.metadata import version; print('sdkit version:', version('sdkit'))"
@rem install rich
call python ..\scripts\check_modules.py rich
if "%ERRORLEVEL%" EQU "0" (

View File

@ -66,7 +66,7 @@ if python ../scripts/check_modules.py sdkit sdkit.models ldm transformers numpy
export PYTHONNOUSERSITE=1
export PYTHONPATH="$INSTALL_ENV_DIR/lib/python3.8/site-packages"
pip install --upgrade sdkit > /dev/null
pip install --upgrade sdkit -q
else
echo "Installing sdkit: https://pypi.org/project/sdkit/"
@ -80,6 +80,8 @@ else
fi
fi
python -c "from importlib.metadata import version; print('sdkit version:', version('sdkit'))"
# install rich
if python ../scripts/check_modules.py rich; then
echo "rich has already been installed."