docs: def build_template(self, template, template_file, package):
          """
          Compile the cheetah template in src into a python file in build
          """
  
          try:
              from Cheetah.Compiler import Compiler
          except ImportError:
              self.announce("unable to import Cheetah.Compiler, build failed")
              raise
          else:
              comp = Compiler(file=template_file, moduleName=template)
  
          # load configuration if it exists
          conf_fn = DEFAULT_CONFIG
          if exists(conf_fn):
              with open(conf_fn, "rt") as config:
                  comp.updateSettingsFromConfigFileObj(config)
  
          # and just why can't I configure these?
          comp.setShBang("")
          comp.addModuleHeader("pylint: disable=C,W,R,F")
  
          outfd = join(self.build_lib, *package.split("."))
          outfn = join(outfd, template + ".py")
  
          if not exists(outfd):
              makedirs(outfd)
  
          if newer(template_file, outfn):
              self.announce("compiling %s -> %s" % (template_file, outfd), 2)
              with open(outfn, "w") as output:
                  output.write(str(comp))