Module ImportFrom alias alias alias alias alias alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad TupleLoad kwarg body Expr Str Assign NameStore IfExp CompareIs NameLoad NameLoad ListLoad ListLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad NameLoad If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Raise Call NameLoad NameLoad Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad BoolOpOr NameLoad ListLoad Assign AttributeStore NameLoad attr Call NameLoad BoolOpOr NameLoad ListLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad BoolOpOr NameLoad ListLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Raise Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assert CompareEq Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Index Num Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A os pex.pex_info PexInfo six string_types twitter.common.collections maybe_list pants.backend.python.targets.python_target PythonTarget pants.base.exceptions TargetDefinitionException PythonBinary N/A PythonTarget N/A N/A A Python binary.

  Python binaries are pex files, self-contained executable shell
  scripts that contain a complete Python environment capable of
  running the target. For more information about pex files see
  http://pantsbuild.github.io/python-readme.html#how-pex-files-work.

  :API: public
   __init__ N/A N/A self source entry_point inherit_path zip_safe always_write_cache repositories indices ignore_errors platforms N/A None None False True False None None False N/A kwargs N/A N/A 
    :param source: relative path to one python source file that becomes this
      binary's __main__.
      If None specified, drops into an interpreter by default.
    :param string entry_point: the default entry point for this binary.  if None, drops into the entry
      point that is defined by source. Something like
      "pants.bin.pants_exe:main", where "pants.bin.pants_exe" is the package
      name and "main" is the function name (if ommitted, the module is
      executed directly, presuming it has a ``__main.py__``).
    :param sources: Overridden by source. To specify more than one source file,
      use a python_library and have the python_binary depend on that library.
    :param inherit_path: inherit the sys.path of the environment that this binary runs in
    :param zip_safe: whether or not this binary is safe to run in compacted (zip-file) form
    :param always_write_cache: whether or not the .deps cache of this PEX file should always
      be written to disk.
    :param repositories: a list of repositories to query for dependencies.
    :param indices: a list of indices to use for packages.
    :param ignore_errors: should we ignore inability to resolve dependencies?
    :param platforms: extra platforms to target when building this binary. If this is, e.g.,
      ``['current', 'linux-x86_64', 'macosx-10.4-x86_64']``, then when building the pex, then
      for any platform-dependent modules, Pants will include ``egg``\s for Linux (64-bit Intel),
      Mac OS X (version 10.4 or newer), and the current platform (whatever is being used when
      making the PEX).
    :param compatibility: either a string or list of strings that represents
      interpreter compatibility for this target, using the Requirement-style format,
      e.g. ``'CPython>=3', or just ['>=2.7','<3']`` for requirements agnostic to interpreter class.
     N/A sources N/A N/A source None N/A N/A source N/A N/A N/A N/A super PythonBinary self __init__ sources sources kwargs N/A N/A N/A source None N/A entry_point None N/A N/A N/A TargetDefinitionException self A python binary target must specify either source or entry_point. N/A N/A N/A N/A isinstance platforms N/A list tuple N/A N/A isinstance platforms string_types N/A N/A N/A TargetDefinitionException self platforms must be a list, tuple or string. N/A N/A self _entry_point entry_point N/A N/A self _inherit_path N/A bool inherit_path N/A N/A self _zip_safe N/A bool zip_safe N/A N/A self _always_write_cache N/A bool always_write_cache N/A N/A self _repositories N/A maybe_list N/A repositories N/A N/A N/A self _indices N/A maybe_list N/A indices N/A N/A N/A self _ignore_errors N/A bool ignore_errors N/A N/A self _platforms N/A tuple N/A maybe_list N/A platforms N/A N/A N/A source entry_point N/A N/A entry_point_module N/A N/A N/A entry_point split : 1 N/A 0 N/A entry_source N/A N/A list N/A N/A self sources_relative_to_source_root N/A 0 N/A source_entry_point N/A N/A self _translate_to_entry_point entry_source N/A N/A entry_point_module source_entry_point N/A N/A N/A TargetDefinitionException self N/A N/A Specified both source and entry_point but they do not agree: {} vs {} format source_entry_point entry_point_module N/A platforms N/A N/A self N/A N/A N/A N/A self _platforms N/A property repositories N/A N/A self N/A N/A N/A N/A self _repositories N/A property indices N/A N/A self N/A N/A N/A N/A self _indices N/A property _translate_to_entry_point N/A N/A self source N/A N/A N/A N/A source_base _ N/A N/A N/A os path splitext source N/A N/A N/A source_base replace N/A N/A os path sep . N/A entry_point N/A N/A self N/A N/A N/A N/A self _entry_point N/A N/A N/A self _entry_point N/A N/A N/A N/A N/A self payload sources source_paths N/A N/A N/A N/A len N/A N/A N/A self payload sources source_paths 1 N/A entry_source N/A N/A list N/A N/A self sources_relative_to_source_root N/A 0 N/A N/A N/A self _translate_to_entry_point entry_source N/A N/A None N/A property pexinfo N/A N/A self N/A N/A N/A info N/A N/A PexInfo default N/A repo N/A self _repositories N/A N/A N/A N/A info add_repository repo N/A index N/A self _indices N/A N/A N/A N/A info add_index index N/A N/A info zip_safe N/A self _zip_safe N/A N/A info always_write_cache N/A self _always_write_cache N/A N/A info inherit_path N/A self _inherit_path N/A N/A info entry_point N/A self entry_point N/A N/A info ignore_errors N/A self _ignore_errors N/A info N/A property N/A