mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 12:58:54 -05:00
Add --no-binary-download option to setup.py (#1916)
This commit is contained in:
parent
45fad1b7cf
commit
76c73ec61e
1 changed files with 18 additions and 5 deletions
|
@ -8,17 +8,30 @@ import re
|
||||||
import sys
|
import sys
|
||||||
from distutils.spawn import find_executable
|
from distutils.spawn import find_executable
|
||||||
import prebuilt
|
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():
|
def main():
|
||||||
enable_ansi_colors()
|
enable_ansi_colors()
|
||||||
|
|
||||||
os.chdir(root_path)
|
os.chdir(root_path)
|
||||||
|
|
||||||
third_party.download_gn()
|
args = parser.parse_args()
|
||||||
third_party.download_clang_format()
|
|
||||||
third_party.download_clang()
|
if args.no_binary_download:
|
||||||
third_party.maybe_download_sysroot()
|
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()
|
write_lastchange()
|
||||||
|
|
||||||
mode = build_mode(default=None)
|
mode = build_mode(default=None)
|
||||||
|
|
Loading…
Reference in a new issue