pkgcore.ebuild.misc module

misc. stuff we’ve not found a spot for yet.

class pkgcore.ebuild.misc.ChunkedDataDict[source]

Bases: object

add(cinst)[source]
add_bare_global(disabled, enabled)[source]
add_global(item)[source]
clone(unfreeze=False)[source]
freeze()[source]
property frozen
merge(cdict)[source]
mk_item(key, neg, pos)[source]
optimize(cache=None)[source]
pull_data(pkg, pre_defaults=())
render_pkg(pkg, pre_defaults=())[source]
render_to_dict()[source]
render_to_payload()[source]
update_from_stream(stream)[source]
class pkgcore.ebuild.misc.IncrementalsDict(incrementals, **kwds)[source]

Bases: DictMixin

clear(*a, **kw)

Method alias to invoke _dict.clear().

disable_py3k_rewriting = True
items(*a, **kw)

Method alias to invoke _dict.items().

keys(*a, **kw)

Method alias to invoke _dict.keys().

pop(*a, **kw)

Method alias to invoke _dict.pop().

values(*a, **kw)

Method alias to invoke _dict.values().

class pkgcore.ebuild.misc.PayloadDict[source]

Bases: ChunkedDataDict

add_bare_global(payload)[source]
add_global(pinst)[source]
mk_item(key, neg, pos)[source]
pull_data(pkg, pre_defaults=())
render_pkg(pkg, pre_defaults=())[source]
update_from_stream(stream)[source]
class pkgcore.ebuild.misc.chunked_data(key, neg, pos)

Bases: tuple

key

Alias for field number 0

neg

Alias for field number 1

pos

Alias for field number 2

class pkgcore.ebuild.misc.collapsed_restrict_to_data(*restrict_sources, **kwds)[source]

Bases: object

incremental = True
iter_pull_data(pkg, pre_defaults=())[source]
pull_data(pkg, force_copy=False, pre_defaults=())[source]
pkgcore.ebuild.misc.get_relative_dosym_target(source, target)[source]

Get relative path from target to source, for symlink target.

pkgcore.ebuild.misc.incremental_chunked(orig: set[str], iterables)[source]
pkgcore.ebuild.misc.incremental_expansion(iterable, orig=None, msg_prefix='', finalize=True)[source]
pkgcore.ebuild.misc.incremental_expansion_license(pkg, licenses, license_groups, iterable, msg_prefix='')[source]
class pkgcore.ebuild.misc.non_incremental_collapsed_restrict_to_data(*restrict_sources, **kwds)[source]

Bases: collapsed_restrict_to_data

iter_pull_data(pkg)[source]
pull_data(pkg, force_copy=False)[source]
pkgcore.ebuild.misc.optimize_incrementals(sequence)[source]
pkgcore.ebuild.misc.sort_keywords(keywords)[source]

Sort keywords in the proper order: i.e. glob-arches, arch, prefix-arches.