Let us walk on the 3-isogeny graph
|
Data Structures | |
class | _MuslVersion |
Functions | |
Tuple[int,...] | _read_unpacked (IO[bytes] f, str fmt) |
Optional[str] | _parse_ld_musl_from_elf (IO[bytes] f) |
Optional[_MuslVersion] | _parse_musl_version (str output) |
Optional[_MuslVersion] | _get_musl_version (str executable) |
Iterator[str] | platform_tags (str arch) |
Variables | |
plat = sysconfig.get_platform() | |
end | |
t | |
PEP 656 support. This module implements logic to detect if the currently running Python is linked against musl, and what musl version is used.
|
protected |
Detect currently-running musl runtime version. This is done by checking the specified executable's dynamic linking information, and invoking the loader to parse its output for a version string. If the loader is musl, the output would be something like:: musl libc (x86_64) Version 1.2.2 Dynamic Program Loader
Definition at line 87 of file _musllinux.py.
References pip._vendor.packaging._musllinux._parse_ld_musl_from_elf(), pip._vendor.packaging._musllinux._parse_musl_version(), and i.
Referenced by pip._vendor.packaging._musllinux.platform_tags().
|
protected |
Detect musl libc location by parsing the Python executable. Based on: https://gist.github.com/lyssdod/f51579ae8d93c8657a5564aefc2ffbca ELF header: https://refspecs.linuxfoundation.org/elf/gabi4+/ch4.eheader.html
Definition at line 22 of file _musllinux.py.
References pip._vendor.packaging._musllinux._read_unpacked(), and i.
Referenced by pip._vendor.packaging._musllinux._get_musl_version().
|
protected |
Definition at line 76 of file _musllinux.py.
References i.
Referenced by pip._vendor.packaging._musllinux._get_musl_version().
|
protected |
Definition at line 18 of file _musllinux.py.
References i.
Referenced by pip._vendor.packaging._musllinux._parse_ld_musl_from_elf().
Iterator[str] platform_tags | ( | str | arch | ) |
Generate musllinux tags compatible to the current platform. :param arch: Should be the part of platform tag after the ``linux_`` prefix, e.g. ``x86_64``. The ``linux_`` prefix is assumed as a prerequisite for the current platform to be musllinux-compatible. :returns: An iterator of compatible musllinux tags.
Definition at line 110 of file _musllinux.py.
References pip._vendor.packaging._musllinux._get_musl_version(), and i.
end |
Definition at line 134 of file _musllinux.py.
plat = sysconfig.get_platform() |
Definition at line 129 of file _musllinux.py.
t |
Definition at line 136 of file _musllinux.py.