Skip to content

Commit 65fe9fa

Browse files
authored
Update setup.py
Signed-off-by: Andreas Fehlner <[email protected]>
1 parent 1384b59 commit 65fe9fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import re
2424
from textwrap import dedent
2525
import multiprocessing
26-
26+
import shutil
2727

2828
TOP_DIR = os.path.realpath(os.path.dirname(__file__))
2929
SRC_DIR = os.path.join(TOP_DIR, 'onnxoptimizer')
@@ -32,7 +32,8 @@
3232
WINDOWS = (os.name == 'nt')
3333
MACOS = sys.platform.startswith("darwin")
3434

35-
CMAKE = find_executable('cmake')
35+
CMAKE = shutil.which('cmake')
36+
3637

3738
install_requires = []
3839
setup_requires = []

0 commit comments

Comments
 (0)