################################################################################ # Default global options is_boolean = set([True, False]) __default_opttree = TreeDict() __default_opttree.logging.format = (str, '%(asctime)s %(name)-12s %(levelname)-8s %(message)s', 'Format string used for the logging.') __default_opttree.logging.datefmt = (str, '%H:%M:%S', 'Format string used for the date in the logging.') __default_opttree.debug_mode = (is_boolean, False, "Enable debug mode in compilation.") __default_opttree.use_hdf5 = (is_boolean, False, "Use hdf5 for caching instead of simple pickling.") __default_opttree.cache_compression = (is_boolean, True, "Use bz2 compression on the cache files.") __default_opttree.project_directory = (str, '.', "The root of the project directory.") __default_opttree.verbose = (is_boolean, False, "Print more detailed diagnostic and progress messages.") __default_opttree.no_cache = (is_boolean, False, "Disable the caching system.") __default_opttree.force = (is_boolean, False, "Overwrite existing files when creating new modules.") __default_opttree.cache_read_only = (is_boolean, False, "Only load things from cache; never save.") __default_opttree.no_compile = (is_boolean, False, "Disable compiling things, even if source files are modified.") __default_opttree.config_file = (str, 'conf', "The configuration file to load options from.") __default_opttree.cache_directory = ([str, type(None)], None, "The cache directory to use; None disables caching.") __default_opttree.import_list = (list, [], "List of modules / directories to import in loading project.") __default_opttree.auto_import = (is_boolean, True, "Automatically import all subdirs with __init__.py files.") __default_opttree.cython.use_cpp = (is_boolean, False, "Compile cython extensions in C++ mode.") __default_opttree.cython.compiler_args = (list, [], "Additional arguments to use when compiling cython extensions.") __default_opttree.cython.link_args = (list, [], "Additional arguments to use when linking cython extensions.")