提交 fa139861 authored 作者: Frederic Bastien's avatar Frederic Bastien

'Added scan_perform to the list of manually compiled file.'

上级 0acd3f29
......@@ -1041,7 +1041,8 @@ class ModuleCache(object):
cached modules regardless of their age.
:param clear_base_files: If True, then delete base directories
'cuda_ndarray', 'cutils_ext' and 'lazylinker_ext' if they are present.
'cuda_ndarray', 'cutils_ext', 'lazylinker_ext' and 'scan_perform'
if they are present.
If False, those directories are left intact.
:param delete_if_problem: See help of refresh() method.
......@@ -1059,7 +1060,7 @@ class ModuleCache(object):
def clear_base_files(self):
"""
Remove base directories 'cuda_ndarray', 'cutils_ext' and 'lazylinker_ext' if present.
Remove base directories 'cuda_ndarray', 'cutils_ext', 'lazylinker_ext' and 'scan_perform' if present.
Note that we do not delete them outright because it may not work on
some systems due to these modules being currently in use. Instead we
......@@ -1068,7 +1069,7 @@ class ModuleCache(object):
"""
compilelock.get_lock()
try:
for base_dir in ('cuda_ndarray', 'cutils_ext', 'lazylinker_ext'):
for base_dir in ('cuda_ndarray', 'cutils_ext', 'lazylinker_ext', 'scan_perform'):
to_delete = os.path.join(self.dirname, base_dir + '.delete.me')
if os.path.isdir(to_delete):
try:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论