spack.package: wrap llnl.util.tty (#48793)

avoid import of llnl.util.tty in packages
This commit is contained in:
Harmen Stoppels
2025-01-31 08:17:29 +01:00
committed by GitHub
parent e1b579a8b4
commit d0cbd056a8
54 changed files with 17 additions and 92 deletions

View File

@@ -13,6 +13,17 @@
# import most common types used in packages
from typing import Dict, List, Optional
class tty:
import llnl.util.tty as _tty
debug = _tty.debug
error = _tty.error
info = _tty.info
msg = _tty.msg
warn = _tty.warn
from llnl.util.filesystem import (
FileFilter,
FileList,