| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | import Options | |
| 2 | 2 | import os | |
| 3 | + import subprocess | ||
| 3 | 4 | from os import unlink, symlink, popen | |
| 4 | 5 | from os.path import exists | |
| 5 | 6 | from logging import fatal | |
@@ -13,10 +14,9 @@ def configure(conf): | |||
| 13 | 14 | ||
| 14 | 15 | if not conf.check(lib='git2'): | |
| 15 | 16 | if not conf.check(lib='git2', libpath=['/usr/local/lib'], uselib_store='GIT2'): | |
| 16 | - os.popen('git submodule init vendor/libgit2') | ||
| 17 | - os.popen('git submodule update vendor/libgit2') | ||
| 18 | - os.chdir('./vendor/libgit2') | ||
| 19 | - os.popen('sudo python waf configure build-shared install') | ||
| 17 | + Popen('git submodule init vendor/libgit2', shell=True, stdin=PIPE) | ||
| 18 | + Popen('git submodule init vendor/libgit2', shell=True, stdin=PIPE) | ||
| 19 | + Popen('python waf configure build-shared', shell=True, stdin=PIPE) | ||
| 20 | 20 | ||
| 21 | 21 | def build(bld): | |
| 22 | 22 | obj = bld.new_task_gen('cxx', 'shlib', 'node_addon') | |
| Back | FazBrowse Home | New Git URL |
0 commit comments