code: def build(
          documentPath,
          outputUFOFormatVersion=3,
          roundGeometry=True,
          verbose=True,           # not supported
          logPath=None,           # not supported
          progressFunc=None,      # not supported
          processRules=True,
          logger=None,
          useVarlib=False,
          ):
      
      import os, glob
      if os.path.isdir(documentPath):
          # process all *.designspace documents in this folder
          todo = glob.glob(os.path.join(documentPath, "*.designspace"))
      else:
          # process the
          todo = [documentPath]
      results = []
      for path in todo:
          document = DesignSpaceProcessor(ufoVersion=outputUFOFormatVersion)
          document.useVarlib = useVarlib
          document.roundGeometry = roundGeometry
          document.read(path)
          try:
              r = document.generateUFO(processRules=processRules)
              results.append(r)
          except:
              if logger:
                  logger.exception("ufoProcessor error")
          #results += document.generateUFO(processRules=processRules)
          reader = None
      return results
docs: Simple builder for UFO designspaces.