MCPcopy
hub / github.com/HKUDS/DeepCode / install_backend_deps

Function install_backend_deps

deepcode.py:181–199  ·  view source on GitHub ↗

Install backend dependencies if needed

()

Source from the content-addressed store, hash-verified

179
180
181def 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
202def install_frontend_deps(frontend_dir: Path):

Callers 1

mainFunction · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected