Skip to content

Commit 4287042

Browse files
committed
env fix
1 parent 5767475 commit 4287042

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tilelang/env.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import logging
55
import shutil
66
import glob
7-
import site
87
from dataclasses import dataclass
98
from typing import Optional
109

@@ -20,12 +19,9 @@
2019
", which may lead to compilation bugs when utilize tilelang backend."
2120
TVM_LIBRARY_NOT_FOUND_MESSAGE = ("TVM is not installed or found in the expected path")
2221

23-
SITE_PACKAGES = site.getsitepackages()
24-
25-
TL_LIBS = [os.path.join(i, 'tilelang/lib') for i in site.getsitepackages()]
26-
TL_LIBS = [i for i in TL_LIBS if os.path.exists(i)]
27-
2822
TL_ROOT = os.path.dirname(os.path.abspath(__file__))
23+
TL_LIBS = [os.path.join(i, 'lib') for i in [TL_ROOT]]
24+
TL_LIBS = [i for i in TL_LIBS if os.path.exists(i)]
2925

3026
DEV = False
3127
THIRD_PARTY_ROOT = os.path.join(TL_ROOT, '3rdparty')

0 commit comments

Comments
 (0)