Index: llvm/utils/lit/pyproject.toml =================================================================== --- /dev/null +++ llvm/utils/lit/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" Index: llvm/utils/lit/setup.py =================================================================== --- llvm/utils/lit/setup.py +++ llvm/utils/lit/setup.py @@ -1,5 +1,5 @@ -import lit import os +import sys from setuptools import setup, find_packages @@ -8,6 +8,9 @@ # python path/to/setup.py install # to work (for scripts, etc.) os.chdir(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, ".") + +import lit setup( name = "lit",