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

Functions

def is_dir_banned
 
def get_rosetta_system_include_directories
 
def get_rosetta_include_directories
 
def get_defines
 
def execute
 
def update_source_file
 
def get_compiler_family
 
def install_llvm_tool
 
def install_pybind11
 
def get_binding_build_root
 
def copy_supplemental_files
 
def generate_rosetta_external_cmake_files
 
def generate_rosetta_cmake_files
 
def generate_cmake_file
 
def generate_bindings
 
def build_generated_bindings
 
def create_package
 
def main
 

Variables

tuple PlatformBits = platform.architecture()
 
string _python_version_ = '{}.{}'
 
string _pybind11_version_ = 'PyRosetta'
 
string _banned_dirs_ = 'src/utility/pointer src/protocols/jd3'
 
string _banned_headers_ = 'utility/py/PyHelper.hh utility/keys/KeyCount.hh utility/keys/KeyLookup.functors.hh'
 

Function Documentation

def build.build_generated_bindings (   rosetta_source_path)
Build generate bindings 

References execute(), BuildPackagedBindings.format, and get_binding_build_root().

Referenced by main().

def build.copy_supplemental_files (   rosetta_source_path)

References get_binding_build_root().

Referenced by generate_bindings().

def build.create_package (   rosetta_source_path,
  path 
)
def build.execute (   message,
  command_line,
  return_ = 'status',
  until_successes = False,
  terminate_on_failure = True,
  silent = False 
)
def build.generate_bindings (   rosetta_source_path)
def build.generate_cmake_file (   rosetta_source_path,
  extra_sources 
)
def build.generate_rosetta_cmake_files (   rosetta_source_path,
  prefix 
)
def build.generate_rosetta_external_cmake_files (   rosetta_source_path,
  prefix 
)
def build.get_binding_build_root (   rosetta_source_path,
  source = False,
  build = False 
)
Calculate bindings build path using current platform and compilation settings and create dir if it is not there yet 

References get_compiler_family().

Referenced by build_generated_bindings(), copy_supplemental_files(), create_package(), generate_bindings(), generate_cmake_file(), and main().

def build.get_compiler_family ( )
Try to guess compiler family using Options.compiler 

Referenced by get_binding_build_root().

def build.get_defines ( )
return list of #defines 

Referenced by generate_bindings(), and generate_cmake_file().

def build.get_rosetta_include_directories ( )
return list of include directories for compilation 

References binder.split().

Referenced by generate_bindings(), and generate_cmake_file().

def build.get_rosetta_system_include_directories ( )
return list of include directories for compilation 

References binder.split().

Referenced by generate_bindings(), and generate_cmake_file().

def build.install_llvm_tool (   name,
  source_location,
  prefix,
  debug,
  clean = True 
)
Install and update (if needed) custom LLVM tool at given prefix (from config).
    Return absolute path to executable on success and terminate with error on failure

References execute(), BuildPackagedBindings.format, basic::database.open(), fmt.print(), and ObjexxFCL.read().

Referenced by main().

def build.install_pybind11 (   prefix,
  clean = True 
)
Download and install PyBind11 library at given prefix. Install version specified by _pybind11_version_ sha1

References execute(), BuildPackagedBindings.format, and fmt.print().

Referenced by main().

def build.is_dir_banned (   directory)

Referenced by generate_bindings().

def build.main (   args)
def build.update_source_file (   file_name,
  data 
)
write data to a file but only if file does not exist or it content different from data 

References basic::database.open(), fmt.print(), and ObjexxFCL.read().

Referenced by generate_cmake_file(), generate_rosetta_cmake_files(), and generate_rosetta_external_cmake_files().

Variable Documentation

string build._banned_dirs_ = 'src/utility/pointer src/protocols/jd3'
string build._banned_headers_ = 'utility/py/PyHelper.hh utility/keys/KeyCount.hh utility/keys/KeyLookup.functors.hh'
string build._pybind11_version_ = 'PyRosetta'
string build._python_version_ = '{}.{}'
tuple build.PlatformBits = platform.architecture()