Skip to content

Add targets for wheel scripts #801

@pauldraper

Description

@pauldraper

#523 added py_binary targets for console_scripts, (Python entry points), but scripts (arbitrary executables) are omitted.

Moreoever, scripts (under the scripts/ directory in the wheel) are not exposed in any way.

Examples: ansible-test from the ansible-core package, aws from the awscli package. Currently, these cannot be run.

Suggestion: Add sh_binary target for these scripts.

In many cases these scripts are in fact Python, and use a system Python runtime, so you may or may not want to actually invoke the executable target.

However, even then it would still at least be available as a file via DefaultInfo. So you could create your own py_binary, using the toolchain python.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Can Close?Will close in 30 days if there is no new activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions