Skip to content

Q: is it correct to link against libpython3.so when building for stable ABI for android #148544

@davidhewitt

Description

@davidhewitt

Downstream in PyO3 we are trying to get build configuration for the new Android distributions fully ironed out.

In particular we're looking at which shared library to link against when building for the stable ABI. We noted that the android distributions do include libpython3.so (without minor version) however we also noted the following text from PEP 738:

All Python extension modules must therefore be explicitly linked against libpython3.x.so when building for Android.

This wording specifically calls out the version-specific library. I cannot see technical reasons why we couldn't link against the stable ABI library instead, and the PEP doesn't appear to mention the stable ABI at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions