Install backend dependencies if needed
()
| 179 | |
| 180 | |
| 181 | def install_backend_deps(): |
| 182 | """Install backend dependencies if needed""" |
| 183 | import importlib.util |
| 184 | |
| 185 | if importlib.util.find_spec("fastapi") is None: |
| 186 | print("📦 Installing backend dependencies...") |
| 187 | deps = [ |
| 188 | "fastapi", |
| 189 | "uvicorn", |
| 190 | "pydantic-settings", |
| 191 | "python-multipart", |
| 192 | "aiofiles", |
| 193 | "websockets", |
| 194 | "pyyaml", |
| 195 | ] |
| 196 | subprocess.run( |
| 197 | [sys.executable, "-m", "pip", "install", "-q"] + deps, check=True |
| 198 | ) |
| 199 | print("✅ Backend dependencies installed") |
| 200 | |
| 201 | |
| 202 | def install_frontend_deps(frontend_dir: Path): |