bouwer.plugins package

Submodules

bouwer.plugins.Archive module

class bouwer.plugins.Archive.Archive[source]

Bases: bouwer.plugin.Plugin

Generate an archive

Constructor

action_run(action)[source]

Run the given action

execute_any(filename, include=['.'], exclude=[''])[source]

Builder implementation

get_filelist(target, directory, include, exclude)[source]

bouwer.plugins.CCheck module

bouwer.plugins.CCompiler module

class bouwer.plugins.CCompiler.CCompiler[source]

Bases: bouwer.util.Singleton

Constructor

c_library(target, sources, item=None, depends=[])[source]

Build a library using a target name and list of sources

c_object(source, item=None, depends=, []**extra_tags)[source]

Compile a C source file into an object file

c_program(target, sources, item=None, depends=, []**extra_tags)[source]

Build an program given its target name and sources list

use_library(libraries, target=None)[source]

Build against a :py:`list` of libraries

The library target for linking will be discovered by searching the generated Action objects in the actions layer.

class bouwer.plugins.CCompiler.Include[source]

Bases: bouwer.plugin.Plugin

Extend the C/C++ include path

Constructor

config_inputz___()[source]

Configuration input items

config_output()[source]

Configuration output items

execute_config_params(conf, includes)[source]

Append includes to the incpath for CC.

class bouwer.plugins.CCompiler.Library[source]

Bases: bouwer.plugin.Plugin

Build a software library

Constructor

config_input()[source]

Configuration input items

config_output()[source]

Configuration output items

execute_config(item, sources, depends=[])[source]

Build a library using a Config and list of sources

execute_target(target, sources, depends=[])[source]

Build a library using a target name and list of sources

class bouwer.plugins.CCompiler.LibraryObject[source]

Bases: bouwer.plugin.Plugin

Specify an additional object for a library

Constructor

config_input()[source]

Configuration input items

config_output()[source]

Configuration output items

execute_config(item, sources, depends=[])[source]

Build executable objects if configurion item item is True

execute_source(source, depends=[])[source]

Build an executable object given its source file

class bouwer.plugins.CCompiler.Object[source]

Bases: bouwer.plugin.Plugin

Build an executable object for a program.

Constructor

config_input()[source]

Configuration input items

config_output()[source]

Configuration output items

execute_config(item, sources, depends=[])[source]

Build executable objects if configurion item item is True

execute_source(source, item=None, depends=[])[source]

Build an executable object given its source file

class bouwer.plugins.CCompiler.Program[source]

Bases: bouwer.plugin.Plugin

Build an executable program

Constructor

config_input()[source]

Configuration input items

execute_config(item, sources, libraries=, []depends=, []name=None)[source]

Build a program given a Config item and sources list.

execute_source(source)[source]

Build an executable object given its source file

execute_target(target, sources, libraries=, []depends=, []item=None)[source]

Build an program given its target name and sources list

class bouwer.plugins.CCompiler.UseLibrary[source]

Bases: bouwer.plugin.Plugin

Build and link a program against a library

Constructor

config_input()[source]

Configuration input items

config_output()[source]

Configuration output items

execute_any(libraries)[source]

Build against a :py:`list` of libraries

The library target for linking will be discovered internally.

execute_config_params(item, libraries)[source]

bouwer.plugins.Check module

class bouwer.plugins.Check.CheckOS[source]

Bases: bouwer.plugin.Plugin

Check for the target OS.

Constructor

action_event(action, event)[source]

Called when an Action has finished

config_action_output()[source]
execute_config_params(conf)[source]
initialize()[source]

bouwer.plugins.Command module

class bouwer.plugins.Command.Command[source]

Bases: bouwer.plugin.Plugin

Run a shell command

Constructor

config_input()[source]
execute_any(command)[source]

Run a shell command

execute_config(item, sources, command, outfile=None)[source]

Runs a command only if item is True

bouwer.plugins.ConfigHeader module

class bouwer.plugins.ConfigHeader.ConfigHeader[source]

Bases: bouwer.plugin.Plugin

Output a C header file with Configuration encoded as #define’s

Constructor

action_event(action, event)[source]

Called when an Action has finished

config_action_output()[source]
config_input()[source]

We can only write the config header when all items are final

execute_any(filename, prefix='CONFIG_')[source]

Builder implementation for ConfigHeader()

bouwer.plugins.FullOutput module

class bouwer.plugins.FullOutput.FullOutput[source]

Bases: bouwer.plugin.Plugin

Constructor

action_event(action, event)[source]
initialize()[source]

bouwer.plugins.Install module

class bouwer.plugins.Install.Install[source]

Bases: bouwer.plugin.Plugin

Copy files to a new location

Constructor

action_run(action)[source]

Run the given action

execute_any(stritem_dir, files)[source]

Builder implementation

bouwer.plugins.LineConfig module

class bouwer.plugins.LineConfig.LineConfig[source]

Bases: bouwer.plugin.Plugin

Configure using standard input

Constructor

configure(conf)[source]

Main configuration routine

initialize()[source]

Initialize plugin

bouwer.plugins.MenuConfig module

class bouwer.plugins.MenuConfig.ConfigBoolNode(value, parent=None, key=None, depth=None)[source]

Bases: urwid.treetools.ParentNode

Represents a ConfigBool in urwid.

load_child_keys()[source]
load_child_node(key)[source]
load_widget()[source]
class bouwer.plugins.MenuConfig.ConfigKeywordNode(value, parent=None, key=None, depth=None)[source]

Bases: urwid.treetools.ParentNode

Represents a Config keyword.

load_child_keys()[source]
load_widget()[source]
class bouwer.plugins.MenuConfig.ConfigKeywordWidget(node)[source]

Bases: urwid.treetools.TreeWidget

Represents a Config item keyword

get_display_text()[source]
get_indented_widget()[source]
keypress(size, key)[source]
update()[source]
class bouwer.plugins.MenuConfig.ConfigListNode(child, parent, key, depth, do_expand)[source]

Bases: urwid.treetools.ParentNode

Represents a ConfigList in urwid.

load_child_keys()[source]
load_child_node(key)[source]
load_widget()[source]
class bouwer.plugins.MenuConfig.ConfigListWidget(node)[source]

Bases: urwid.treetools.TreeWidget

get_display_text()[source]
get_indented_widget()[source]
keypress(size, key)[source]
update()[source]
update_all()[source]
class bouwer.plugins.MenuConfig.ConfigMenuWidget(node)[source]

Bases: urwid.treetools.TreeWidget

class bouwer.plugins.MenuConfig.ConfigPathNode(value, parent=None, key=None, depth=None)[source]

Bases: urwid.treetools.ParentNode

Represents a Bouwconfig path.

load_child_keys()[source]
load_widget()[source]
class bouwer.plugins.MenuConfig.ConfigPathWidget(node)[source]

Bases: urwid.treetools.TreeWidget

get_display_text()[source]
get_indented_widget()[source]
selectable()[source]
update()[source]
class bouwer.plugins.MenuConfig.ConfigStringNode(value, parent=None, key=None, depth=None)[source]

Bases: urwid.treetools.ParentNode

Represents a ConfigString in urwid.

load_child_keys()[source]
load_widget()[source]
class bouwer.plugins.MenuConfig.ConfigStringWidget(node)[source]

Bases: urwid.treetools.TreeWidget

get_display_text()[source]
get_indented_widget()[source]
keypress(size, key)[source]
update()[source]
class bouwer.plugins.MenuConfig.ConfigTreeNode(value, parent=None, key=None, depth=None)[source]

Bases: urwid.treetools.ParentNode

Represents a ConfigTree in urwid.

load_child_keys()[source]
load_child_node(key)[source]
load_widget()[source]
class bouwer.plugins.MenuConfig.ConfigTreeWidget(node)[source]

Bases: urwid.treetools.TreeWidget

Display widget for leaf nodes

get_display_text()[source]
get_indented_widget()[source]
keypress(size, key)[source]
update()[source]
update_all()[source]
class bouwer.plugins.MenuConfig.ConfigurationNode(value, parent=None, key=None, depth=None)[source]

Bases: urwid.treetools.ParentNode

Represents a Configuration in a urwid TreeList

load_child_keys()[source]
load_child_node(key)[source]
load_widget()[source]
class bouwer.plugins.MenuConfig.DialogDisplay(text, height, width, body=None, loop=None, parent=None, caller=None)[source]

Bases: builtins.object

add_buttons(buttons)[source]
button_press(button)[source]
on_exit(exitcode)[source]
palette = [('body', 'black', 'light gray', 'standout'), ('border', 'black', 'dark blue'), ('shadow', 'white', 'black'), ('selectable', 'black', 'dark cyan'), ('focus', 'white', 'dark blue', 'bold'), ('focustext', 'light gray', 'dark blue')]
show()[source]
unhandled_input(key)[source]
exception bouwer.plugins.MenuConfig.DialogExit[source]

Bases: builtins.Exception

class bouwer.plugins.MenuConfig.InputDialogDisplay(item, caller, height, width, parent, loop)[source]

Bases: bouwer.plugins.MenuConfig.DialogDisplay

input_change(widget, text)[source]
on_exit(exitcode)[source]
class bouwer.plugins.MenuConfig.InputKeywordDialog(val, caller, height, width, parent, loop)[source]

Bases: bouwer.plugins.MenuConfig.DialogDisplay

input_change(widget, text)[source]
class bouwer.plugins.MenuConfig.MenuConfig[source]

Bases: bouwer.plugin.Plugin

Configure using the urwid / ncurses text-console frontend

Constructor

configure(conf)[source]

Configure using urwid

initialize()[source]

Initialize the plugin

open_urwid_editor()[source]
unhandled_input(k)[source]
class bouwer.plugins.MenuConfig.TreeDialogDisplay(item, caller, height, width, parent, loop)[source]

Bases: bouwer.plugins.MenuConfig.DialogDisplay

on_exit(exitcode)[source]

bouwer.plugins.PrettyOutput module

class bouwer.plugins.PrettyOutput.PrettyOutput[source]

Bases: bouwer.plugin.Plugin

Constructor

action_event(action, event)[source]
initialize()[source]

bouwer.plugins.ProgressBar module

class bouwer.plugins.ProgressBar.ProgressBar[source]

Bases: bouwer.plugin.Plugin

Output a textual progress bar on the terminal

Constructor

action_event(action, event)[source]

Called when an ActionEvent is triggered

get_console_width()[source]

Return the width of the console in characters

initialize()[source]

Initialize plugin

update_progress(progress, label='')[source]

Displays or updates a console progress bar

bouwer.plugins.QuietOutput module

class bouwer.plugins.QuietOutput.QuietOutput[source]

Bases: bouwer.plugin.Plugin

Outputs nothing unless an error occurs

Constructor

action_event(action, event)[source]

Does nothing for quiet

initialize()[source]

Initialize plugin

bouwer.plugins.RequireVersion module

class bouwer.plugins.RequireVersion.RequireVersion[source]

Bases: bouwer.plugin.Plugin

Verify that Bouwer has the given minimum/maximum version.

Constructor

execute_any(minimum, maximum='9.9.9')[source]

Builder implementation

Module contents