

def configure_clp_pex_options(parser):
    group = OptionGroup(parser, 'PEX output options', 'Tailor the behavior of the emitted .pex file if -o is specified.')
    group.add_option('--zip-safe', '--not-zip-safe', dest='zip_safe', default=True, action='callback', callback=parse_bool, help='Whether or not the sources in the pex file are zip safe.  If they are not zip safe, they will be written to disk prior to execution; Default: zip safe.')
    group.add_option('--always-write-cache', dest='always_write_cache', default=False, action='store_true', help='Always write the internally cached distributions to disk prior to invoking the pex source code.  This can use less memory in RAM constrained environments. [Default: %default]')
    group.add_option('--ignore-errors', dest='ignore_errors', default=False, action='store_true', help='Ignore run-time requirement resolution errors when invoking the pex. [Default: %default]')
    group.add_option('--inherit-path', dest='inherit_path', default=False, action='store_true', help='Inherit the contents of sys.path (including site-packages) running the pex. [Default: %default]')
    parser.add_option_group(group)

dataset/ETHPy150Open pantsbuild/pex/pex/bin/pex.py configure_clp_pex_options/original