Skip to content

Commit 09f67f6

Browse files
committed
move sys import
Signed-off-by: Gene Der Su <[email protected]>
1 parent 7e7277b commit 09f67f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"""Installation script."""
88

99
import os
10-
import sys
1110
import time
1211
from pathlib import Path
1312
from typing import List, Tuple
@@ -153,6 +152,8 @@ def setup_requirements() -> Tuple[List[str], List[str], List[str]]:
153152
if not found_cmake():
154153
setup_reqs.append("cmake>=3.21")
155154
if not found_ninja():
155+
import sys
156+
156157
subprocess.check_call([sys.executable, "-m", "pip", "install", "ninja"])
157158
setup_reqs.append("ninja")
158159
if not found_pybind11():

0 commit comments

Comments
 (0)