code: def install_uchroot(_):
      
      builddir = local.path(str(CFG["build_dir"].value))
      with local.cwd(builddir):
          erlent_src = local.path('erlent')
          erlent_git = erlent_src / '.git'
          erlent_repo = str(CFG['uchroot']['repo'])
          erlent_build = erlent_src / 'build'
          if not erlent_git.exists():
              git("clone", erlent_repo)
          else:
              with local.cwd(erlent_src):
                  git("pull", "--rebase")
  
          erlent_build.mkdir()
          with local.cwd(erlent_build):
              cmake("../")
              make()
  
      os.environ["PATH"] = os.path.pathsep.join(
          [erlent_build, os.environ["PATH"]])
      local.env.update(PATH=os.environ["PATH"])
  
      if not find_package("uchroot"):
          LOG.error('uchroot not found, after updating PATH to %s',
                    os.environ['PATH'])
          sys.exit(-1)
  
      env = CFG['env'].value
      if 'PATH' not in env:
          env['PATH'] = []
      env['PATH'].append(str(erlent_build))
docs: Installer for erlent (contains uchroot).