Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
1b4cddfb
Unverified
Commit
1b4cddfb
authored
May 09, 2020
by
James Lamb
Committed by
GitHub
May 09, 2020
Browse files
[python-package] Use set for OS check (#3059)
parent
6a666cc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/setup.py
python-package/setup.py
+1
-1
No files found.
python-package/setup.py
View file @
1b4cddfb
...
@@ -121,7 +121,7 @@ def compile_cpp(use_mingw=False, use_gpu=False, use_mpi=False,
...
@@ -121,7 +121,7 @@ def compile_cpp(use_mingw=False, use_gpu=False, use_mpi=False,
if
use_hdfs
:
if
use_hdfs
:
cmake_cmd
.
append
(
"-DUSE_HDFS=ON"
)
cmake_cmd
.
append
(
"-DUSE_HDFS=ON"
)
if
system
()
in
(
'Windows'
,
'Microsoft'
)
:
if
system
()
in
{
'Windows'
,
'Microsoft'
}
:
if
use_mingw
:
if
use_mingw
:
if
use_mpi
:
if
use_mpi
:
raise
Exception
(
'MPI version cannot be compiled by MinGW due to the miss of MPI library in it'
)
raise
Exception
(
'MPI version cannot be compiled by MinGW due to the miss of MPI library in it'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment