summaryrefslogtreecommitdiff
path: root/tools/build_third_party.py
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2018-07-06 09:25:38 +0900
committerRyan Dahl <ry@tinyclouds.org>2018-07-05 20:57:42 -0400
commit31eda28a640f1052ef3ccf57704c3f564cf5061f (patch)
tree2ed40397e288150ce1b1d55451244e7260619349 /tools/build_third_party.py
parent131e0ce4c78f63469d9aeaad6bd06bbcfe099ee9 (diff)
chore: clean up build_third_party.py
Diffstat (limited to 'tools/build_third_party.py')
-rwxr-xr-xtools/build_third_party.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/build_third_party.py b/tools/build_third_party.py
index caaf3bfaf..7457bb51b 100755
--- a/tools/build_third_party.py
+++ b/tools/build_third_party.py
@@ -9,27 +9,22 @@
import os
import subprocess
-import argparse
root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
third_party_path = os.path.join(root_path, "third_party")
-script_name = "build_third_party.py"
-parser = argparse.ArgumentParser(description="""
-This script updates the third party dependencies of deno.
-""")
-parser.parse_args()
def main():
os.chdir(third_party_path)
run(["gclient", "sync", "--no-history"])
run(["yarn"])
- print "Done (" + script_name + ")"
+
def run(args):
print " ".join(args)
env = os.environ.copy()
subprocess.check_call(args, env=env)
+
if '__main__' == __name__:
main()