Skip to content

Commit 3afd2be

Browse files
authored
Unnecessary code (#6009)
1 parent cc55e02 commit 3afd2be

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/linter/adapters/clangtidy_linter.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
import shutil
88
import subprocess
99
import sys
10+
import sysconfig
1011
import time
1112
from enum import Enum
1213
from pathlib import Path
13-
from sysconfig import get_paths as gp
1414
from typing import Any, List, NamedTuple, Optional, Pattern
1515

1616
# Nvfuser directory root
@@ -25,7 +25,7 @@
2525

2626
# Returns '/usr/local/include/python<version number>'
2727
def get_python_include_dir() -> str:
28-
return gp()["include"]
28+
return sysconfig.get_paths()["include"]
2929

3030

3131
def eprint(*args: Any, **kwargs: Any) -> None:
@@ -131,7 +131,6 @@ def clang_search_dirs() -> List[str]:
131131

132132
include_args = []
133133
include_dir = [
134-
"/usr/lib/llvm-11/include/openmp",
135134
get_python_include_dir(),
136135
os.path.join(NVFUSER_ROOT, "third_party/pybind11/include"),
137136
] + clang_search_dirs()

0 commit comments

Comments
 (0)