Browse Source

install requirements

Waldecir Santos 12 năm trước cách đây
mục cha
commit
4518f33c1c
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      tornado/setup.py

+ 2 - 0
tornado/setup.py

@@ -12,6 +12,8 @@ def start(args):
     setup_util.replace_text(
         cwd + "/server.py", "127.0.0.1", args.database_host)
 
+    subprocess.check_call("pip install -r %s/requirements.txt")
+
     subprocess.Popen("python %s/FrameworkBenchmarks/tornado/server.py --port=8000" % home, shell=True, cwd=cwd)
     subprocess.Popen("python %s/FrameworkBenchmarks/tornado/server.py --port=8001" % home, shell=True, cwd=cwd)
     subprocess.Popen("python %s/FrameworkBenchmarks/tornado/server.py --port=8002" % home, shell=True, cwd=cwd)