![]() |
Rosetta
2015.38
|
Classes | |
| class | ModuleBuilder |
Functions | |
| def | main |
| def | execute |
| def | print_ |
| def | mFork |
| def | mWait |
| def | getCompilerOptions |
| def | getLinkerOptions |
| def | buildModules |
| def | prepareMiniLibs |
| def | prepareBoostLibs |
| def | preparePythonLibs |
| def | copy_tree_contents |
| def | stageStaticFiles |
Variables | |
| tuple | logger = logging.getLogger("BuildPackagedBindings") |
| tuple | script_root_dir = path.dirname(path.realpath(__file__)) |
| tuple | PlatformBits = platform.architecture() |
| tuple | JobTuple = namedtuple("JobTuple",["pid", "tag"]) |
| list | Jobs = [] |
| list | candidate_target_modules = ['utility', 'numeric', 'basic', 'core', 'protocols'] |
| def BuildPackagedBindings.buildModules | ( | module_paths, | |
| py_src_path, | |||
| dest, | |||
| include_paths, | |||
| libpaths, | |||
| runtime_libpaths, | |||
| gccxml_path | |||
| ) |
recursive build buinding for given dir name, and store them in dest.
References exclude.isBanned(), ObjexxFCL.len(), and mWait().
Referenced by main().
| def BuildPackagedBindings.copy_tree_contents | ( | src, | |
| dst, | |||
symlinks = False, |
|||
ignore = None |
|||
| ) |
Recursively copy contents of src into dst.
References basic.Error().
Referenced by stageStaticFiles().
| def BuildPackagedBindings.execute | ( | message, | |
| command_line, | |||
return_ = False, |
|||
untilSuccesses = False, |
|||
print_output = True, |
|||
verbose = True |
|||
| ) |
| def BuildPackagedBindings.getCompilerOptions | ( | ) |
| def BuildPackagedBindings.getLinkerOptions | ( | ) |
Return appropriate linking options based on platform info
Referenced by prepareMiniLibs().
| def BuildPackagedBindings.main | ( | args | ) |
Script to build mini Python buidings.
References buildModules(), execute(), extract_scores_and_constraints.join, prepareBoostLibs(), prepareMiniLibs(), preparePythonLibs(), stageStaticFiles(), and ObjexxFCL.strip().
Referenced by BuildPackagedBindings.ModuleBuilder.linkBindings().
| def BuildPackagedBindings.mFork | ( | tag = None, |
|
overhead = 0 |
|||
| ) |
Check if number of child process is below Options.jobs. And if it is - fork the new pocees and return its pid.
References JobTuple, ObjexxFCL.len(), and print_().
Referenced by BuildPackagedBindings.ModuleBuilder.compileBindings(), BuildPackagedBindings.ModuleBuilder.generateBindings(), and BuildPackagedBindings.ModuleBuilder.linkBindings().
| def BuildPackagedBindings.mWait | ( | tag = None, |
|
all_ = False |
|||
| ) |
Wait for process tagged with 'tag' for completion
References print_().
Referenced by buildModules().
| def BuildPackagedBindings.prepareBoostLibs | ( | bindings_path | ) |
Identify and copy boost library into the bindings path.
References execute(), and ObjexxFCL.len().
Referenced by main().
| def BuildPackagedBindings.prepareMiniLibs | ( | mini_path, | |
| bindings_path | |||
| ) |
References execute(), basic::options::OptionKeys::in::file.file, getLinkerOptions(), extract_scores_and_constraints.join, ObjexxFCL.read(), utility.split(), and ObjexxFCL.strip().
Referenced by main().
| def BuildPackagedBindings.preparePythonLibs | ( | bindings_path | ) |
| def BuildPackagedBindings.print_ | ( | msg, | |
color = None, |
|||
background = None, |
|||
bright = False, |
|||
blink = False, |
|||
action = 'print', |
|||
endline = True |
|||
| ) |
print string with color and background. Avoid printing and return results str instead if action is 'return'. Also check for 'Options.no_color'
References extract_scores_and_constraints.join.
Referenced by BuildPackagedBindings.ModuleBuilder.generateBindings(), mFork(), and mWait().
| def BuildPackagedBindings.stageStaticFiles | ( | repository_root_dir, | |
| script_root_dir, | |||
| target_dir | |||
| ) |
References copy_tree_contents().
Referenced by main().
| list BuildPackagedBindings.candidate_target_modules = ['utility', 'numeric', 'basic', 'core', 'protocols'] |
| list BuildPackagedBindings.Jobs = [] |
| tuple BuildPackagedBindings.logger = logging.getLogger("BuildPackagedBindings") |
| tuple BuildPackagedBindings.PlatformBits = platform.architecture() |
| tuple BuildPackagedBindings.script_root_dir = path.dirname(path.realpath(__file__)) |
1.8.7