Skip to content

Multi-platform solution for python single executables #310

@sitaktif

Description

@sitaktif

Bazel currently has good support for creating single executable python binary outputs (e.g python zip and previously, par), however these formats don't support producing a single file that is compatible with multiple platforms (e.g. Linux and MacOS) when dependencies include platform-specific dependencies.

Some solutions exist for this problem (e.g. the pex format supports that use case by including all the various wheels in the output file and doing some magic with sys.path at runtime) but no such thing is currently supported by rules_python.

It would be great to have a solution to support the multi-platform case for python binaries.

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