Rosetta  2015.38
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
BuildPackagedBindings Namespace Reference

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']
 

Function Documentation

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)
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 
)
def BuildPackagedBindings.preparePythonLibs (   bindings_path)
Identify python include paths.

References ObjexxFCL.len().

Referenced by main().

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().

Variable Documentation

list BuildPackagedBindings.candidate_target_modules = ['utility', 'numeric', 'basic', 'core', 'protocols']
list BuildPackagedBindings.Jobs = []
tuple BuildPackagedBindings.JobTuple = namedtuple("JobTuple",["pid", "tag"])

Referenced by mFork().

tuple BuildPackagedBindings.logger = logging.getLogger("BuildPackagedBindings")
tuple BuildPackagedBindings.PlatformBits = platform.architecture()
tuple BuildPackagedBindings.script_root_dir = path.dirname(path.realpath(__file__))