Skip to content

Allow customizing Python stub script's shebang in the Python toolchain #8685

@brandjon

Description

@brandjon

Currently the stub script requires (via its shebang) that the target system have a python command available on PATH. If the target is PY3, the user might reasonable expect that it work if python is not available but python3 is. We can modify the shebang in this case to be #!/usr/bin/env python3. However doing so might break if the system has a (Python 3) python command but not a python3 command.

See #8665 for a case where the shebang has been a problem in practice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2We'll consider working on this in future. (Assignee optional)team-Rules-PythonNative rules for Pythontype: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions