//python:py_binary.bzl

Public entry point for py_binary.

py_binary(**attrs)

Creates an executable Python program.

This is the public macro wrapping the underlying rule. Args are forwarded on as-is unless otherwise specified. See the underlying py_binary rule for detailed attribute documentation.

This macro affects the following args:

  • python_version: cannot be PY2

  • srcs_version: cannot be PY2 or PY2ONLY

  • tags: May have special marker values added, if not already present.

Changed in version VERSION_NEXT_FEATURE: The PYTHONBREAKPOINT environment variable is inherited. Use in combination with --debugger to customize the debugger available and used.

Args: