1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-03 04:48:52 -05:00

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

This commit is contained in:
Ryan Dahl 2019-03-15 10:06:17 -04:00 committed by GitHub
parent 45fad1b7cf
commit 76c73ec61e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)