Unverified Commit 1b4cddfb authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[python-package] Use set for OS check (#3059)

parent 6a666cc5
......@@ -121,7 +121,7 @@ def compile_cpp(use_mingw=False, use_gpu=False, use_mpi=False,
if use_hdfs:
cmake_cmd.append("-DUSE_HDFS=ON")
if system() in ('Windows', 'Microsoft'):
if system() in {'Windows', 'Microsoft'}:
if use_mingw:
if use_mpi:
raise Exception('MPI version cannot be compiled by MinGW due to the miss of MPI library in it')
......
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