Revert "[Triton-MLIR][pybind11] Update pybind11 to 2.10.0" (#702)

Reverts openai/triton#694
This commit is contained in:
Philippe Tillet
2022-09-23 12:31:33 -07:00
committed by GitHub
parent 922155f1d2
commit c56f0198dd
29 changed files with 14740 additions and 24 deletions

View File

@@ -20,20 +20,6 @@ def check_env_flag(name: str, default: str = "") -> bool:
return os.getenv(name, default).upper() in ["ON", "1", "YES", "TRUE", "Y"]
def check_submodule():
submodule_paths = ["third-party/pybind11/include/pybind11"]
if not all([os.path.exists(p) for p in submodule_paths]):
print("initializing submodules ...")
try:
cwd = os.path.abspath(os.path.dirname(__file__))
subprocess.check_call(["git", "submodule", "update", "--init", "--recursive"], cwd=cwd)
print("submodule initialization succeeded")
except Exception:
print("submodule initialization failed")
print(" Please run:\n\tgit submodule update --init --recursive")
exit(-1)
def get_llvm():
# download if nothing is installed
system = platform.system()
@@ -95,7 +81,6 @@ class CMakeBuild(build_ext):
self.build_extension(ext)
def build_extension(self, ext):
check_submodule()
llvm_include_dir, llvm_library_dir = get_llvm()
# lit is used by the test suite
lit_dir = shutil.which('lit')