![]() |
Rosetta
3.7
|
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' |
| 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 | |||
| ) |
References BuildPackagedBindings.format, get_binding_build_root(), and fmt.print().
Referenced by main().
| def build.execute | ( | message, | |
| command_line, | |||
return_ = 'status', |
|||
until_successes = False, |
|||
terminate_on_failure = True, |
|||
silent = False |
|||
| ) |
References BuildPackagedBindings.format, and fmt.print().
Referenced by build_generated_bindings(), generate_bindings(), install_llvm_tool(), and install_pybind11().
| def build.generate_bindings | ( | rosetta_source_path | ) |
Generate bindings using binder tools and return list of source files
References copy_supplemental_files(), execute(), BuildPackagedBindings.format, generate_cmake_file(), get_binding_build_root(), get_defines(), get_rosetta_include_directories(), get_rosetta_system_include_directories(), is_dir_banned(), extract_scores_and_constraints.join, ObjexxFCL.len(), basic::database.open(), ObjexxFCL.read(), and binder.split().
Referenced by main().
| def build.generate_cmake_file | ( | rosetta_source_path, | |
| extra_sources | |||
| ) |
generate cmake file in bindings source location
References BuildPackagedBindings.format, generate_rosetta_cmake_files(), generate_rosetta_external_cmake_files(), get_binding_build_root(), get_defines(), get_rosetta_include_directories(), get_rosetta_system_include_directories(), extract_scores_and_constraints.join, basic::database.open(), ObjexxFCL.read(), and update_source_file().
Referenced by generate_bindings().
| def build.generate_rosetta_cmake_files | ( | rosetta_source_path, | |
| prefix | |||
| ) |
References BuildPackagedBindings.format, extract_scores_and_constraints.join, key, ObjexxFCL.len(), basic::database.open(), and update_source_file().
Referenced by generate_cmake_file().
| 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 | ) |
PyRosetta building script
References build_generated_bindings(), create_package(), BuildPackagedBindings.format, generate_bindings(), get_binding_build_root(), install_llvm_tool(), install_pybind11(), and fmt.print().
| 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().
| 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() |
1.8.7