Files
family-hub/fix-dependencies.bat

66 lines
1.6 KiB
Batchfile

@echo off
echo ========================================
echo Fixing Dependency Versions
echo ========================================
echo.
echo This script updates requirements.txt to use newer versions
echo with pre-built wheels (no Rust compiler needed).
echo.
cd backend
echo Backing up old requirements.txt...
if exist requirements.txt (
copy requirements.txt requirements.txt.bak >nul
echo [OK] Backup created: requirements.txt.bak
)
echo Writing updated requirements.txt...
(
echo fastapi==0.115.0
echo uvicorn[standard]==0.32.0
echo sqlalchemy==2.0.36
echo python-jose[cryptography]==3.3.0
echo bcrypt==4.2.0
echo passlib[bcrypt]==1.7.4
echo python-multipart==0.0.12
echo pydantic==2.10.3
echo pydantic-settings==2.6.1
echo python-dotenv==1.0.1
echo email-validator==2.2.0
) > requirements.txt
echo [OK] requirements.txt updated
echo.
echo Reinstalling dependencies...
if exist venv (
venv\Scripts\pip.exe install --upgrade pip
venv\Scripts\pip.exe install -r requirements.txt
if %ERRORLEVEL% EQU 0 (
echo.
echo ========================================
echo SUCCESS! Dependencies fixed.
echo ========================================
echo.
echo You can now run:
echo start-backend.bat
echo.
) else (
echo.
echo ERROR: Failed to install dependencies
echo Try deleting the venv folder and running setup.bat again
echo.
)
) else (
echo [OK] requirements.txt updated
echo.
echo No virtual environment found.
echo Run setup.bat to create it and install dependencies.
echo.
)
cd ..
pause