pex.arch.types

Module Contents

class pex.arch.types.Arch(name: str, endian: str = 'little', bits: int = 64, alter_names: list = [], interpreter: str | None = None, sub_sets: list = [])

Bases: object

Subclass of pex.arch.types module.

This subclass of pex.arch.types module is intended for providing an implementation of architecture descriptor.

__add__(arch: Any) Any

Add architecture to current architecture sub sets.

Parameters:

arch (Any) – architecture to add

Return Any:

updated architecture

__sub__(arch: Any) Any

Remove architecture from current sub sets.

Parameters:

arch (Any) – architecture to remove

Return Any:

updated architecture

__len__() int

Get bits.

Return int:

number of bits (32 or 64)

__hash__() int

Make this architecture hashable.

Return int:

architecture hash

__str__() str

Covert to string.

Return str:

architecture name

__contains__(arch: Any) bool

Check if architecture is a sub set of current one.

Parameters:

arch (Any) – can be architecture name of alternative name

Return bool:

True if contains else False

__eq__(arch: Any) bool

Check if architecture compatible with current one.

Parameters:

arch (Any) – can be arch name or alternative name

Return bool:

True if compatible else False

pex.arch.types.ARCH_PYTHON
pex.arch.types.ARCH_PHP
pex.arch.types.ARCH_PERL
pex.arch.types.ARCH_RUBY
pex.arch.types.ARCH_BASH
pex.arch.types.ARCH_APPLESCRIPT
pex.arch.types.ARCH_X64
pex.arch.types.ARCH_X86
pex.arch.types.ARCH_AARCH64
pex.arch.types.ARCH_ARMLE
pex.arch.types.ARCH_ARMBE
pex.arch.types.ARCH_MIPSLE
pex.arch.types.ARCH_MIPSBE
pex.arch.types.ARCH_GENERIC