You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup.py 629 B

123456789101112131415
  1. #!/usr/bin/env python
  2. # Equivalent to running the basj script below, but with an additional check if the files was moved:
  3. # cd ../../..
  4. # pip install -e .[websockets] fastapi uvicorn
  5. import subprocess
  6. from pathlib import Path
  7. repo_root = Path(__file__).parents[3]
  8. if not (repo_root / "setup.py").exists():
  9. raise RuntimeError("This script has been moved, please run it from its original location.")
  10. print("Installing the package in editable mode, with the websockets extra, and fastapi and uvicorn...", flush=True)
  11. subprocess.run(["pip", "install", "-e", ".[websockets]", "fastapi", "uvicorn"], cwd=repo_root, check=True)