Changeset View
Changeset View
Standalone View
Standalone View
contrib/gitian-build.py
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | elif not args.kvm: | ||||
os.environ['USE_LXC'] = '1' | os.environ['USE_LXC'] = '1' | ||||
if 'GITIAN_HOST_IP' not in os.environ.keys(): | if 'GITIAN_HOST_IP' not in os.environ.keys(): | ||||
os.environ['GITIAN_HOST_IP'] = '10.0.3.1' | os.environ['GITIAN_HOST_IP'] = '10.0.3.1' | ||||
if 'LXC_GUEST_IP' not in os.environ.keys(): | if 'LXC_GUEST_IP' not in os.environ.keys(): | ||||
os.environ['LXC_GUEST_IP'] = '10.0.3.5' | os.environ['LXC_GUEST_IP'] = '10.0.3.5' | ||||
# Disable for MacOS if no SDK found | # Disable for MacOS if no SDK found | ||||
if args.macos and not os.path.isfile( | if args.macos and not os.path.isfile( | ||||
'gitian-builder/inputs/MacOSX10.11.sdk.tar.gz'): | 'gitian-builder/inputs/MacOSX10.14.sdk.tar.gz'): | ||||
print('Cannot build for MacOS, SDK does not exist. Will build for other OSes') | print('Cannot build for MacOS, SDK does not exist. Will build for other OSes') | ||||
args.macos = False | args.macos = False | ||||
script_name = os.path.basename(sys.argv[0]) | script_name = os.path.basename(sys.argv[0]) | ||||
# Signer and version shouldn't be empty | # Signer and version shouldn't be empty | ||||
if args.signer == '': | if args.signer == '': | ||||
print(script_name + ': Missing signer.') | print(script_name + ': Missing signer.') | ||||
print('Try ' + script_name + ' --help for more information') | print('Try ' + script_name + ' --help for more information') | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |