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
5b7a6f3e
Unverified
Commit
5b7a6f3e
authored
Jul 12, 2021
by
Nikita Titov
Committed by
GitHub
Jul 12, 2021
Browse files
[python] parallelize MinGW make similarly to Unix make command (#4462)
parent
ef76db45
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 @
5b7a6f3e
...
@@ -158,7 +158,7 @@ def compile_cpp(
...
@@ -158,7 +158,7 @@ def compile_cpp(
logger
.
info
(
"Starting to compile with CMake and MinGW."
)
logger
.
info
(
"Starting to compile with CMake and MinGW."
)
silent_call
(
cmake_cmd
+
[
"-G"
,
"MinGW Makefiles"
],
raise_error
=
True
,
silent_call
(
cmake_cmd
+
[
"-G"
,
"MinGW Makefiles"
],
raise_error
=
True
,
error_msg
=
'Please install CMake and all required dependencies first'
)
error_msg
=
'Please install CMake and all required dependencies first'
)
silent_call
([
"mingw32-make.exe"
,
"_lightgbm"
,
f
"-I
{
build_dir
}
"
],
raise_error
=
True
,
silent_call
([
"mingw32-make.exe"
,
"_lightgbm"
,
f
"-I
{
build_dir
}
"
,
"-j4"
],
raise_error
=
True
,
error_msg
=
'Please install MinGW first'
)
error_msg
=
'Please install MinGW first'
)
else
:
else
:
status
=
1
status
=
1
...
...
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