Index: build_apprtc_collider.py |
diff --git a/build_apprtc_collider.py b/build_apprtc_collider.py |
index f9ce9aa2f646c515fd796d61898aa2f675672eea..2758b1f427bf1e97f2317798725a8fbe9c5f4db0 100755 |
--- a/build_apprtc_collider.py |
+++ b/build_apprtc_collider.py |
@@ -13,6 +13,7 @@ import os |
import shutil |
import subprocess |
import sys |
+import tempfile |
import utils |
@@ -40,6 +41,14 @@ def main(): |
subprocess.check_call([golang_path, 'build', 'collidermain'], |
env=golang_env) |
+ # Delete everything in the workspace except the build artifacts. |
+ go_bin_dir = os.path.join(golang_workspace, 'bin') |
+ tmp_dir = tempfile.mkdtemp() |
+ shutil.move(go_bin_dir, tmp_dir) |
+ shutil.rmtree(golang_workspace) |
kjellander_chromium
2016/02/09 16:27:29
If you remove src/out/go-workspace here, then tryi
|
+ shutil.move(os.path.join(tmp_dir, 'bin'), go_bin_dir) |
+ os.rmdir(tmp_dir) |
+ |
if __name__ == '__main__': |
sys.exit(main()) |