Allow bootstrap to be invoked via python2

This means that on most Linux distributions where python3 is the default, we
can invoke `python2 script/bootstrap.py` and have it all work
This commit is contained in:
Paul Betts 2016-04-05 13:28:50 -07:00 committed by Cheng Zhao
parent d171cfe8d0
commit 3ee366257c
7 changed files with 14 additions and 13 deletions

View file

@ -164,11 +164,12 @@ def update_clang():
def download_sysroot(target_arch):
python = sys.executable;
if target_arch == 'ia32':
target_arch = 'i386'
if target_arch == 'x64':
target_arch = 'amd64'
execute_stdout([os.path.join(SOURCE_ROOT, 'script', 'install-sysroot.py'),
execute_stdout([python, os.path.join(SOURCE_ROOT, 'script', 'install-sysroot.py'),
'--arch', target_arch])
def create_chrome_version_h():