diff options
Diffstat (limited to 'build.py')
-rwxr-xr-x | build.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -30,6 +30,7 @@ vendor repository as well. import argparse import multiprocessing import os +import platform import shutil import six import subprocess @@ -802,6 +803,11 @@ if __name__ == '__main__': # Make sure we get absolute path + expanded path for bootstrap directory args.bootstrap_dir = os.path.abspath(os.path.expanduser(args.bootstrap_dir)) + # Possible values for machine() come from 'uname -m' + # Since this script only runs on Linux, x86_64 machines must have this value + if platform.machine() != 'x86_64': + raise Exception("Only x86_64 machines are currently supported by this build script.") + if args.run_bootstrap: bootstrap = Bootstrap(args.bootstrap_dir, os.path.dirname(__file__)) bootstrap.bootstrap() |