Skip to content

Commit 0fb4ce12f0637077ea9a1064f6447d3aa81c6ffa breaks py_binary bootstrap wrapper for Python 2Β #2726

@pw-mdb

Description

@pw-mdb

🐞 bug report

Description

Commit 0fb4ce1 / PR #2481 breaks the py_binary bootstrap wrapper for systems that have Python 2 as the system Python. Reverting that commit fixes the issue.

Is this a regression?

Yes, regression as of commit 0fb4ce1. Commit was first released in version 1.1.0.

πŸ”¬ Minimal Reproduction

  1. Create a py_binary.
  2. Try to run it on a Linux system that has Python 2 as the system Python.

πŸ”₯ Exception or Error


  File ".runfiles/_main/build/tools/yamllint", line 92
    def print_verbose(*args, mapping=None, values=None):
                                   ^
SyntaxError: invalid syntax

🌍 Your Environment

Operating System:

  
amazonlinux2
  

Output of bazel version:

  
Bazelisk version: 1.25.0
Build label: 8.1.1
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Tue Feb 25 18:53:44 2025 (1740509624)
Build timestamp: 1740509624
Build timestamp as int: 1740509624
  

Rules_python version:

  
1.0.0
  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions