Skip to content

Commit 008f27a

Browse files
committed
Remove redundant cmake version check at benchmarks
1 parent 30e616d commit 008f27a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

benchmarks/setup.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import re
32
import shutil
43
import subprocess
54
import sys
@@ -25,16 +24,6 @@ def __init__(self, build_type="Debug"):
2524
self.build_type = build_type
2625

2726
def run(self):
28-
try:
29-
out = subprocess.check_output(["cmake", "--version"])
30-
except OSError as error:
31-
raise RuntimeError("CMake must be installed") from error
32-
33-
match = re.search(r"version\s*(?P<major>\d+)\.(?P<minor>\d+)([\d.]+)?", out.decode())
34-
cmake_major, cmake_minor = int(match.group("major")), int(match.group("minor"))
35-
if (cmake_major, cmake_minor) < (3, 18):
36-
raise RuntimeError("CMake >= 3.18.0 is required")
37-
3827
self.build_extension()
3928

4029
def build_extension(self):

0 commit comments

Comments
 (0)