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
c306c7b9
Unverified
Commit
c306c7b9
authored
Jan 27, 2019
by
Nikita Titov
Committed by
GitHub
Jan 27, 2019
Browse files
[python][R][docs] added possibility to install with Visual Studio 2019 Preview (#1956)
parent
f9a1465d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
R-package/src/install.libs.R
R-package/src/install.libs.R
+1
-1
python-package/README.rst
python-package/README.rst
+1
-1
python-package/setup.py
python-package/setup.py
+2
-2
No files found.
R-package/src/install.libs.R
View file @
c306c7b9
...
...
@@ -53,7 +53,7 @@ if (!use_precompile) {
}
else
{
try_vs
<-
0
local_vs_def
<-
""
vs_versions
<-
c
(
"Visual Studio 15 2017 Win64"
,
"Visual Studio 14 2015 Win64"
)
vs_versions
<-
c
(
"Visual Studio 15 2017 Win64"
,
"Visual Studio 14 2015 Win64"
,
"Visual Studio 16 2019"
)
for
(
vs
in
vs_versions
){
vs_def
<-
paste0
(
" -G \""
,
vs
,
"\""
)
tmp_cmake_cmd
<-
paste0
(
cmake_cmd
,
vs_def
)
...
...
python-package/README.rst
View file @
c306c7b9
...
...
@@ -16,7 +16,7 @@ Preparation
Install from `PyPI <https://pypi.org/project/lightgbm>`_ Using ``pip``
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
For **Windows** users, `VC runtime <https://go.microsoft.com/fwlink/?LinkId=746572>`_ is needed if **Visual Studio** (2015 or
2017
) is not installed.
For **Windows** users, `VC runtime <https://go.microsoft.com/fwlink/?LinkId=746572>`_ is needed if **Visual Studio** (2015 or
newer
) is not installed.
For **Linux** users, **glibc** >= 2.14 is required.
...
...
python-package/setup.py
View file @
c306c7b9
...
...
@@ -148,7 +148,7 @@ def compile_cpp(use_mingw=False, use_gpu=False, use_mpi=False, nomp=False,
lib_path
=
os
.
path
.
join
(
CURRENT_DIR
,
"compile"
,
"windows"
,
"x64"
,
"DLL"
,
"lib_lightgbm.dll"
)
if
not
any
((
use_gpu
,
use_mpi
,
use_hdfs
)):
logger
.
info
(
"Starting to compile with MSBuild from existing solution file."
)
platform_toolsets
=
(
"v141"
,
"v140"
)
platform_toolsets
=
(
"v141"
,
"v140"
,
"v142"
)
for
pt
in
platform_toolsets
:
status
=
silent_call
([
"MSBuild"
,
os
.
path
.
join
(
CURRENT_DIR
,
"compile"
,
"windows"
,
"LightGBM.sln"
),
...
...
@@ -162,7 +162,7 @@ def compile_cpp(use_mingw=False, use_gpu=False, use_mpi=False, nomp=False,
if
status
!=
0
or
not
os
.
path
.
exists
(
lib_path
):
logger
.
warning
(
"Compilation with MSBuild from existing solution file failed."
)
if
status
!=
0
or
not
os
.
path
.
exists
(
lib_path
):
vs_versions
=
(
"Visual Studio 15 2017 Win64"
,
"Visual Studio 14 2015 Win64"
)
vs_versions
=
(
"Visual Studio 15 2017 Win64"
,
"Visual Studio 14 2015 Win64"
,
"Visual Studio 16 2019"
)
for
vs
in
vs_versions
:
logger
.
info
(
"Starting to compile with %s."
%
vs
)
status
=
silent_call
(
cmake_cmd
+
[
"-G"
,
vs
])
...
...
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