Stella Laurenzo 9f3f6d7bd8 Move MLIR python sources to mlir/python.
* NFC but has some fixes for CMake glitches discovered along the way (things not cleaning properly, co-mingled depends).
* Includes previously unsubmitted fix in D98681 and a TODO to fix it more appropriately in a smaller followup.

Differential Revision: https://reviews.llvm.org/D101493
2021-05-03 18:36:48 +00:00

10 lines
361 B
INI

# TODO: This tool requires PyYAML, which is not yet a required build/test
# dependency. Remove this exclusion once it is a required dep.
# Since both lit and the python bindings use the same python interpreter,
# we can just check whether yaml can be imported here and exclude if not.
try:
import yaml
except ModuleNotFoundError:
config.unsupported = True