pkgcore.ebuild.eapi module

class pkgcore.ebuild.eapi.EAPI(magic, parent=None, phases=(), default_phases=(), mandatory_keys=(), dep_keys=(), metadata_keys=(), eclass_keys=(), tracked_attributes=(), archive_exts=(), optionals=None, ebd_env_options=None)[source]

Bases: object

archive_exts_regex

Regex matching strings ending with supported archive extensions.

archive_exts_regex_pattern

Regex pattern for supported archive extensions.

atom_kls
bash_cmds_banned

EAPI specific commands banned for this EAPI.

bash_cmds_deprecated

EAPI specific commands deprecated for this EAPI.

bash_cmds_internal

EAPI specific commands for this EAPI.

bash_funcs

Internally implemented EAPI specific functions to skip when exporting.

bash_funcs_global

Internally implemented global EAPI specific functions to skip when exporting.

bash_libs()[source]

Generate internally implemented EAPI specific bash libs required by the ebd.

ebd_env

Dictionary of EAPI options passed to the ebd environment.

helpers

Phase to directory mapping for EAPI specific helpers to add to $PATH.

inherits

Ordered set containing an EAPI’s inheritance tree.

Note that this assumes a simple, linear inheritance tree.

interpret_cache_defined_phases(sequence)[source]
is_supported

Check if an EAPI is supported.

is_valid_use_flag(s: str) bool[source]

returns True if the flag is parsable under this EAPI

known_eapis = <WeakValueDictionary>
classmethod register(*args, **kwds)[source]
unknown_eapis = <WeakValueDictionary>
valid_slot_regex

Regex matching valid SLOT values.

pkgcore.ebuild.eapi.get_eapi(magic, suppress_unsupported=True)[source]

Return EAPI object for a given identifier.

pkgcore.ebuild.eapi.get_latest_PMS_eapi()[source]

return the latest PMS EAPI object known to this version of pkgcore