Skip to content

Commit

Permalink
Add --no-binary-download option to setup.py (#1916)
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Mar 15, 2019
1 parent 45fad1b commit 76c73ec
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions tools/setup.py
Expand Up @@ -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)
Expand Down

0 comments on commit 76c73ec

Please sign in to comment.