Browse Source

Ensuring only dependencies are installed to the user's cabal directory

Brendan Hay 12 years ago
parent
commit
31a94ae049
1 changed files with 2 additions and 1 deletions
  1. 2 1
      snap/setup.py

+ 2 - 1
snap/setup.py

@@ -6,7 +6,8 @@ import os
 def start(args):
   setup_util.replace_text("snap/bench/cfg/db.cfg", "host=\".*\"", "host=\"" + args.database_host + "\"")
   subprocess.check_call("cabal update", shell=True, cwd="snap/bench")
-  subprocess.check_call("cabal install", shell=True, cwd="snap/bench")
+  subprocess.check_call("cabal install --only-dependencies", shell=True, cwd="snap/bench")
+  subprocess.check_call("cabal build", shell=True, cwd="snap/bench")
 
   t = str(args.max_threads)
   subprocess.Popen("dist/build/snap-bench/snap-bench +RTS -A" + t + "M -N" + t + " > /dev/null", shell=True, cwd="snap/bench")