Skip to content

[Linux] Packages cannot be installed into / #972

@lengau

Description

@lengau

When using the glibc standalone Python builds for Linux containers, installing these standalone builds into / results in some weird behaviour. The root cause appears to be that sys.base_prefix is set to /install. I've created a Rockcraft file that demonstrates the issue at https://github.com/lengau/bug-reproducers/tree/python-standalone-bin

While the packages work correctly when placed into /usr, they don't work in /. If placed in /usr on a system with /usr merge, the same issues appear when calling /bin/python3 or related.

Given how different this is from the purpose of these builds I think it's reasonable to file it under quirks and move on, but I figured you ought to know :-)

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