def build(settings, repository): frontends = [] if repository.areTherePendingChanges(): if 'install' in settings['versions']: # print "\nWARNING: repository has pending changes\n" raise Exception("repository has pending changes, can't 'install'") else: print "\nWARNING: repository has pending changes\n" for frontend in settings['frontends']: normalizedFrontendName = frontend.replace(".", "_") builderModuleName = normalizedFrontendName + 'Builder' builderClassName = normalizedFrontendName.title() + 'Builder' #print ("BUILD FRONTEND - module: " + builderModuleName + " , class: " + builderClassName) builderModule = __import__(builderModuleName) builderClass = getattr(builderModule, builderClassName) builder = builderClass(frontend, loadSettings('frontend', frontend), repository.version()) #builder = frontendBuilder.FrontendBuilder(frontend, loadSettings('frontend', frontend), repository.version()) frontends.append(builder) for backend in settings['backends']: assembleBackend(backend, frontends, settings['versions'])
def build(settings, repository): frontends = [] if repository.areTherePendingChanges(): print "\nWARNING: repository has pending changes\n" for frontend in settings['frontends']: frontends.append( frontendBuilder.FrontendBuilder(frontend, loadSettings('frontend', frontend), repository.version())) for backend in settings['backends']: assembleBackend(backend, frontends, settings['versions'])
def build (settings, repository): frontends = [] if repository.areTherePendingChanges(): if 'install' in settings['versions']: raise Exception("repository has pending changes, can't 'install'") else: print "\nWARNING: repository has pending changes\n" for frontend in settings['frontends']: normalizedFrontendName = frontend.replace(".", "_") builderModuleName = normalizedFrontendName + 'Builder' builderClassName = normalizedFrontendName.title() + 'Builder' #print ("BUILD FRONTEND - module: " + builderModuleName + " , class: " + builderClassName) builderModule = __import__(builderModuleName) builderClass = getattr(builderModule, builderClassName) builder = builderClass(frontend, loadSettings('frontend', frontend), repository.version()) #builder = frontendBuilder.FrontendBuilder(frontend, loadSettings('frontend', frontend), repository.version()) frontends.append(builder) for backend in settings['backends']: assembleBackend(backend, frontends, settings['versions'])
def build (settings, repository): frontends = [] if repository.areTherePendingChanges(): print "\nWARNING: repository has pending changes\n" for frontend in settings['frontends']: frontends.append(frontendBuilder.FrontendBuilder(frontend, loadSettings('frontend', frontend), repository.version())) for backend in settings['backends']: assembleBackend(backend, frontends, settings['versions'])