зеркало из https://github.com/microsoft/LightGBM.git
[python] fix mypy error in setup.py (#4671)
This commit is contained in:
Родитель
a572fdbbff
Коммит
b1b6db4bd7
|
@ -61,10 +61,10 @@ def copy_files(integrated_opencl: bool = False, use_gpu: bool = False) -> None:
|
|||
copy_files_helper('include')
|
||||
copy_files_helper('src')
|
||||
for submodule in (CURRENT_DIR.parent / 'external_libs').iterdir():
|
||||
submodule = submodule.stem
|
||||
if submodule == 'compute' and not use_gpu:
|
||||
submodule_stem = submodule.stem
|
||||
if submodule_stem == 'compute' and not use_gpu:
|
||||
continue
|
||||
copy_files_helper(Path('external_libs') / submodule)
|
||||
copy_files_helper(Path('external_libs') / submodule_stem)
|
||||
(CURRENT_DIR / "compile" / "windows").mkdir(parents=True, exist_ok=True)
|
||||
copyfile(CURRENT_DIR.parent / "windows" / "LightGBM.sln",
|
||||
CURRENT_DIR / "compile" / "windows" / "LightGBM.sln")
|
||||
|
|
Загрузка…
Ссылка в новой задаче