Skip to content

sage.env._get_shared_lib_filename: Fix for MULTIARCH #30901

@tobiasdiez

Description

@tobiasdiez

On distributions that use the multiarch installation scheme, python provides the MULTIARCH sysconfig variable.

We modify sage.env._get_shared_lib_filename to use it.
(Currently it tries to use MULTILIB which does not exist.)
Moreover, I took the opportunity to refactor the code in the _get_shared_lib_filename method to use pathlib.

(extracted from #30371)

CC: @tobiasdiez @kiwifb @tobihan @embray @dimpase

Component: build

Keywords: sd111

Author: Tobias Diez

Branch/Commit: fa4556a

Reviewer: Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/30901

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions