default=False, help= 'For any git package, update and build in existing directory rather than stating from scratch (may fail)' ) parser.add_option( '--add-ld-library-path', dest='ld_library_path', default=None, help= 'This is a hack for the supercomputer that uses libstdc++ in a non-standard location. Please don\'t use this option unless you truly needed. This has the ability to corrupt our builds if you put /usr/lib or /lib as an argument.' ) global opt (opt, args) = parser.parse_args() info('Using %d build processes' % opt.threads) if opt.ccache and opt.save_temps: die('--save-temps was specified. Disable ccache with --no-ccache.') if opt.build_root is not None and not P.exists(opt.build_root): os.makedirs(opt.build_root) if opt.resume and opt.build_root is None: opt.build_root = grablink('last-run') if opt.build_root is None: opt.build_root = mkdtemp(prefix=binary_builder_prefix()) # Things misbehave if directories have symlinks or are relative opt.build_root = P.realpath(opt.build_root)
parser.add_option('--fetch', action='store_const', dest='mode', const='fetch', help='Fetch sources only, don\'t build') parser.add_option('--libtoolize', dest='libtoolize', default=None, help='Value to set LIBTOOLIZE, use to override if system\'s default is bad.') parser.add_option('--no-ccache', action='store_false', dest='ccache', default=True, help='Disable ccache') parser.add_option('--no-fetch', action='store_const', dest='mode', const='nofetch', help='Build, but do not fetch (will fail if sources are missing)') parser.add_option('--osx-sdk-version', dest='osx_sdk', default='10.6', help='SDK version to use. Make sure you have the SDK version before requesting it.') parser.add_option('--pretend', action='store_true', dest='pretend', default=False, help='Show the list of packages without actually doing anything') parser.add_option('--resume', action='store_true', dest='resume', default=False, help='Reuse in-progress build/install dirs') parser.add_option('--save-temps', action='store_true', dest='save_temps', default=False, help='Save build files to check include paths') parser.add_option('--threads', type='int', dest='threads', default=get_cores(), help='Build threads to use') parser.add_option('--fast', action='store_true', dest='fast', default=False, help='For any git package, update and build in existing directory rather than stating from scratch (may fail)') parser.add_option('--add-ld-library-path', dest='ld_library_path', default=None, help='This is a hack for the supercomputer that uses libstdc++ in a non-standard location. Please don\'t use this option unless you truly needed. This has the ability to corrupt our builds if you put /usr/lib or /lib as an argument.') global opt (opt, args) = parser.parse_args() info('Using %d build processes' % opt.threads) if opt.ccache and opt.save_temps: die('--save-temps was specified. Disable ccache with --no-ccache.') if opt.build_root is not None and not P.exists(opt.build_root): os.makedirs(opt.build_root) if opt.resume and opt.build_root is None: opt.build_root = grablink('last-run') if opt.build_root is None: opt.build_root = mkdtemp(prefix=binary_builder_prefix()) # Things misbehave if directories have symlinks or are relative opt.build_root = P.realpath(opt.build_root)