Add --no-binary-download option to setup.py
@@ -8,17 +8,30 @@ import re
import sys
from distutils.spawn import find_executable
import prebuilt
+import argparse
+
+parser = argparse.ArgumentParser()
+parser.add_argument(
+ "--no-binary-download",
+ help="Do not download binaries, must use depot_tools manually",
+ action="store_true")
def main():
enable_ansi_colors()
-
os.chdir(root_path)
+ args = parser.parse_args()
+
+ if args.no_binary_download:
+ print "no binary download"
+ else:
+ print "binary download"
third_party.download_gn()
third_party.download_clang_format()
third_party.download_clang()
third_party.maybe_download_sysroot()
+
write_lastchange()
mode = build_mode(default=None)
