Exemple #1
0
def bootstrap(root,config):


    # Check for OS X Mavericks
    have_mavericks = False
    import platform
    plat = platform.system()
    if plat == 'Darwin':
        have_mavericks = True if platform.mac_ver()[0]=='10.9' else False

    cleanUp(root,config)
    createDirectories(root,config)

    prefix = config.get('Main','prefix')
    cmake_path = prefix+'/bempp/bin/cmake'
    if config.has_option('CMake','exe'):
	cmake_executable = tools.which(config.get('CMake','exe'))
	if cmake_executable is None:
	    raise Exception("CMake command specified in [CMake] section not found.")
        else:
            tools.setDefaultConfigOption(config,"CMake","exe",cmake_executable,overwrite=True)
    else:
        if not have_mavericks:
            print "CMake not found. Downloading and installing CMake..."
            cmake.download(root,config)
            cmake.prepare(root,config)
            cmake.configure(root,config)
            cmake.build(root,config)
            cmake.install(root,config)
            tools.setDefaultConfigOption(config,"CMake","exe",cmake_path,overwrite=True)
        else:
            raise Exception("On OS X Mavericks 'cmake' must be manually specified in the config file.") 

    downloadDependencies(root,config)
Exemple #2
0
def bootstrap(root, config):

    cleanUp(root, config)
    dep_build_dir = config.get('Main', 'dependency_build_dir')
    checkCreateDir(dep_build_dir)
    dep_download_dir = config.get('Main', 'dependency_download_dir')
    checkCreateDir(dep_download_dir)
    bempp_build_dir = config.get('Bempp', 'build_dir')
    checkCreateDir(bempp_build_dir)

    checkCreateDir(prefix + "/bempp")
    checkCreateDir(prefix + "/bempp/lib")
    checkCreateDir(prefix + "/bempp/include")

    cmake.download(root, config)

    downloadDependencies(root, config)

    cmake.prepare(root, config)
    cmake.configure(root, config)
    cmake.build(root, config)
    cmake.install(root, config)
Exemple #3
0
def bootstrap(root,config):

    cleanUp(root,config)
    dep_build_dir=config.get('Main','dependency_build_dir')
    checkCreateDir(dep_build_dir)
    dep_download_dir=config.get('Main','dependency_download_dir')
    checkCreateDir(dep_download_dir)
    bempp_build_dir=config.get('Bempp','build_dir')
    checkCreateDir(bempp_build_dir)

    checkCreateDir(prefix+"/bempp")
    checkCreateDir(prefix+"/bempp/lib")
    checkCreateDir(prefix+"/bempp/include")

    cmake.download(root,config)

    downloadDependencies(root,config)

    cmake.prepare(root,config)
    cmake.configure(root,config)
    cmake.build(root,config)
    cmake.install(root,config)