mammoth-autumn-2551
07/29/2015, 6:00 PMclass ThriftBinary(object):
"""Encapsulates access to pre-built thrift static binaries."""
class Factory(Subsystem):
options_scope = 'thrift-binary'
@classmethod
def dependencies(cls):
return (BinaryUtil.Factory,)
@classmethod
def register_options(cls, register):
register('--supportdir', recursive=True, advanced=True, default='bin/thrift',
help='Find thrift binaries under this dir. Used as part of the path to lookup the'
'tool with --binary-util-baseurls and --pants-bootstrapdir')
register('--version', recursive=True, advanced=True, default='0.9.2',
help='Thrift compiler version. Used as part of the path to lookup the'
'tool with --binary-util-baseurls and --pants-bootstrapdir’)