pkgcore.ebuild.ebd_ipc module

class pkgcore.ebuild.ebd_ipc.Best_Version(op)[source]

Bases: _QueryCmd

Python wrapper for best_version.

run(args)[source]

Run the requested IPC command.

class pkgcore.ebuild.ebd_ipc.Dobin(*args, **kwargs)[source]

Bases: _InstallWrapper

Python wrapper for dobin.

parse_install_options(*args, **kwargs)[source]

Parse install command options.

class pkgcore.ebuild.ebd_ipc.Docompress(*args, **kwargs)[source]

Bases: _AlterFiles

Python wrapper for docompress.

default_includes = ('/usr/share/doc', '/usr/share/info', '/usr/share/man')
class pkgcore.ebuild.ebd_ipc.Dodir(*args, **kwargs)[source]

Bases: _InstallWrapper

Python wrapper for dodir.

arg_parser = IpcArgumentParser(prog='build.py', usage=None, description=None, formatter_class=<class 'snakeoil.cli.arghparse.CsvHelpFormatter'>, conflict_handler='error', add_help=False)
diroptions_default = '-m0755'
run(args)[source]

Run the requested IPC command.

class pkgcore.ebuild.ebd_ipc.Dodoc(*args, **kwargs)[source]

Bases: _InstallWrapper

Python wrapper for dodoc.

arg_parser = IpcArgumentParser(prog='build.py', usage=None, description=None, formatter_class=<class 'snakeoil.cli.arghparse.CsvHelpFormatter'>, conflict_handler='error', add_help=False)
insoptions_default = '-m0644'
class pkgcore.ebuild.ebd_ipc.Doexe(*args, **kwargs)[source]

Bases: _InstallWrapper

Python wrapper for doexe.

class pkgcore.ebuild.ebd_ipc.Dohard(*args, **kwargs)[source]

Bases: _Symlink

Python wrapper for dosym.

class pkgcore.ebuild.ebd_ipc.Dohtml(*args, **kwargs)[source]

Bases: _InstallWrapper

Python wrapper for dohtml.

arg_parser = IpcArgumentParser(prog='build.py', usage=None, description=None, formatter_class=<class 'snakeoil.cli.arghparse.CsvHelpFormatter'>, conflict_handler='error', add_help=False)
default_allowed_file_exts = ('css', 'gif', 'htm', 'html', 'jpeg', 'jpg', 'js', 'png')
insoptions_default = '-m0644'
parse_args(*args, **kwargs)[source]

Parse internal args passed from the bash side.

class pkgcore.ebuild.ebd_ipc.Doinfo(*args, **kwargs)[source]

Bases: _InstallWrapper

Python wrapper for doinfo.

insoptions_default = '-m0644'
class pkgcore.ebuild.ebd_ipc.Doins(*args, **kwargs)[source]

Bases: _InstallWrapper

Python wrapper for doins.

arg_parser = IpcArgumentParser(prog='build.py', usage=None, description=None, formatter_class=<class 'snakeoil.cli.arghparse.CsvHelpFormatter'>, conflict_handler='error', add_help=False)
class pkgcore.ebuild.ebd_ipc.Dolib(*args, **kwargs)[source]

Bases: _InstallWrapper

Python wrapper for dolib.

class pkgcore.ebuild.ebd_ipc.Dolib_a(*args, **kwargs)[source]

Bases: Dolib

Python wrapper for dolib.a.

name = 'dolib.a'
class pkgcore.ebuild.ebd_ipc.Dolib_so(*args, **kwargs)[source]

Bases: Dolib

Python wrapper for dolib.so.

name = 'dolib.so'
class pkgcore.ebuild.ebd_ipc.Doman(*args, **kwargs)[source]

Bases: _InstallWrapper

Python wrapper for doman.

arg_parser = IpcArgumentParser(prog='build.py', usage=None, description=None, formatter_class=<class 'snakeoil.cli.arghparse.CsvHelpFormatter'>, conflict_handler='error', add_help=False)
detect_lang_re = re.compile('^(\\w+)\\.([a-z]{2}([A-Z]{2})?)\\.(\\w+)$')
insoptions_default = '-m0644'
valid_mandir_re = re.compile('man[0-9n](f|p|pm)?$')
class pkgcore.ebuild.ebd_ipc.Domo(*args, **kwargs)[source]

Bases: _InstallWrapper

Python wrapper for domo.

insoptions_default = '-m0644'
class pkgcore.ebuild.ebd_ipc.Dosbin(*args, **kwargs)[source]

Bases: Dobin

Python wrapper for dosbin.

class pkgcore.ebuild.ebd_ipc.Dostrip(*args, **kwargs)[source]

Bases: _AlterFiles

Python wrapper for dostrip.

class pkgcore.ebuild.ebd_ipc.Dosym(*args, **kwargs)[source]

Bases: _Symlink

Python wrapper for dosym.

arg_parser = IpcArgumentParser(prog='build.py', usage=None, description=None, formatter_class=<class 'snakeoil.cli.arghparse.CsvHelpFormatter'>, conflict_handler='error', add_help=False)
run(args)[source]

Run the requested IPC command.

class pkgcore.ebuild.ebd_ipc.Eapply(*args, **kwargs)[source]

Bases: IpcCommand

Python wrapper for eapply.

arg_parser = IpcArgumentParser(prog='build.py', usage=None, description=None, formatter_class=<class 'snakeoil.cli.arghparse.CsvHelpFormatter'>, conflict_handler='error', add_help=False)
parse_args(options, args)[source]

Parse internal args passed from the bash side.

run(args, user=False)[source]

Run the requested IPC command.

class pkgcore.ebuild.ebd_ipc.Eapply_User(op)[source]

Bases: IpcCommand

Python wrapper for eapply_user.

arg_parser = IpcArgumentParser(prog='build.py', usage=None, description=None, formatter_class=<class 'snakeoil.cli.arghparse.CsvHelpFormatter'>, conflict_handler='error', add_help=False)
run(args)[source]

Run the requested IPC command.

class pkgcore.ebuild.ebd_ipc.FilterEnv(op)[source]

Bases: IpcCommand

arg_parser = IpcArgumentParser(prog='build.py', usage=None, description=None, formatter_class=<class 'snakeoil.cli.arghparse.CsvHelpFormatter'>, conflict_handler='error', add_help=False)
filtering = <argparse._ArgumentGroup object>
run(args)[source]

Run the requested IPC command.

class pkgcore.ebuild.ebd_ipc.Has_Version(op)[source]

Bases: _QueryCmd

Python wrapper for has_version.

run(args)[source]

Run the requested IPC command.

class pkgcore.ebuild.ebd_ipc.IpcArgumentParser(*args, **kwargs)[source]

Bases: ArgumentParser

Raise IPC exception for argparse errors.

Otherwise standard argparse prints the parser usage then outputs the error message to stderr.

error(msg)[source]

Print an error message and exit.

Similar to argparse’s error() except usage information is not shown by default.

class pkgcore.ebuild.ebd_ipc.IpcCommand(op)[source]

Bases: object

Commands sent from the bash side of the ebuild daemon to run.

arg_parser = None
name = None
parse_args(options, args)[source]

Parse internal args passed from the bash side.

parser = None
read()[source]

Read a line from the ebuild daemon.

run(args)[source]

Run the requested IPC command.

warn(msg)[source]

Output warning message.

Args:

msg: message to be output

write(data)[source]

Write data to the ebuild daemon.

Args:

data: data to be sent to the bash side

exception pkgcore.ebuild.ebd_ipc.IpcCommandError(msg='', code=1, name=None, **kwargs)[source]

Bases: IpcError, PkgcoreUserException

IPC errors related to parsing arguments or running the command.

exception pkgcore.ebuild.ebd_ipc.IpcError(msg='', code=1, name=None, **kwargs)[source]

Bases: PkgcoreException

Generic IPC errors.

exception pkgcore.ebuild.ebd_ipc.IpcInternalError(msg='', code=1, name=None, **kwargs)[source]

Bases: IpcError

IPC errors related to internal bugs.

class pkgcore.ebuild.ebd_ipc.Keepdir(*args, **kwargs)[source]

Bases: Dodir

Python wrapper for keepdir.

run(args)[source]

Run the requested IPC command.

exception pkgcore.ebuild.ebd_ipc.UnknownArguments(args)[source]

Bases: IpcCommandError

Unknown arguments passed to IPC command.

exception pkgcore.ebuild.ebd_ipc.UnknownOptions(options)[source]

Bases: IpcCommandError

Unknown options passed to IPC command.

class pkgcore.ebuild.ebd_ipc.Unpack(op)[source]

Bases: IpcCommand

arg_parser = IpcArgumentParser(prog='build.py', usage=None, description=None, formatter_class=<class 'snakeoil.cli.arghparse.CsvHelpFormatter'>, conflict_handler='error', add_help=False)
parse_args(*args, **kwargs)[source]

Parse internal args passed from the bash side.

run(args)[source]

Run the requested IPC command.

pkgcore.ebuild.ebd_ipc.command_options(s)[source]

Split string of command line options into list.

pkgcore.ebuild.ebd_ipc.existing_path(path)[source]

Check if a given path exists (allows broken symlinks).