"python-package/vscode:/vscode.git/clone" did not exist on "d62378b45314c2688deef7333ae16fcc9863d881"
Unverified Commit b1b6db4b authored by Rakshit P's avatar Rakshit P Committed by GitHub
Browse files

[python] fix mypy error in setup.py (#4671)

parent a572fdbb
......@@ -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")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment