Skip to content
Permalink
Browse files

Add --no-binary-download option to setup.py (#1916)

  • Loading branch information...
ry committed Mar 15, 2019
1 parent 45fad1b commit 76c73ec61ec4271581795a2f0e3ae60072676dae
Showing with 18 additions and 5 deletions.
  1. +18 −5 tools/setup.py
@@ -8,17 +8,30 @@
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)

third_party.download_gn()
third_party.download_clang_format()
third_party.download_clang()
third_party.maybe_download_sysroot()
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)

0 comments on commit 76c73ec

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.