bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Add Python first build tutorial (#27824)

Open ANONYMOUSZED-beep opened this issue 3 weeks ago • 1 comments

This commit adds a comprehensive Python first build tutorial to address the missing documentation for Python in the Getting Started guides.

Changes:

  • Add site/en/start/python.md with complete tutorial covering:
    • Stage 1: Single target, single package (py_binary)
    • Stage 2: Multiple targets (py_binary + py_library)
    • Stage 3: Multiple packages with visibility
    • External dependencies with pip/PyPI
    • Testing with py_test
  • Update site/en/start/_index.yaml to include Python in First build guides
  • Add examples/python-tutorial/ with working example code for all stages

Fixes #27824

ANONYMOUSZED-beep avatar Dec 02 '25 06:12 ANONYMOUSZED-beep

@ANONYMOUSZED-beep Could you please take a look at the failing checks?

bharadwaj08-one avatar Dec 02 '25 10:12 bharadwaj08-one