Skip to content

Commit

Permalink
[python] fix mypy error in setup.py (#4671)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakki-18 authored Oct 13, 2021
1 parent a572fdb commit b1b6db4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python-package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def copy_files_helper(folder_name: Union[str, Path]) -> 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")
Expand Down

0 comments on commit b1b6db4

Please sign in to comment.