Browse Source

Move "go get" from setup.py to install.sh

INADA Naoki 11 years ago
parent
commit
8efe886a16
2 changed files with 2 additions and 2 deletions
  1. 2 0
      gin/install.sh
  2. 0 2
      gin/setup.py

+ 2 - 0
gin/install.sh

@@ -1,3 +1,5 @@
 #!/bin/bash
 
 fw_depends go
+go get github.com/gin-gonic/gin
+go get github.com/go-sql-driver/mysql

+ 0 - 2
gin/setup.py

@@ -3,8 +3,6 @@ import os
 
 
 def start(args, logfile, errfile):
-    subprocess.call("go get github.com/gin-gonic/gin", shell=True, cwd="gin", stderr=errfile, stdout=logfile) 
-    subprocess.call("go get github.com/go-sql-driver/mysql", shell=True, cwd="gin", stderr=errfile, stdout=logfile) 
     subprocess.Popen("go run hello.go".rsplit(" "), cwd="gin", stderr=errfile, stdout=logfile)
     return 0