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
7689a4d0
Commit
7689a4d0
authored
Sep 18, 2017
by
Guolin Ke
Committed by
GitHub
Sep 18, 2017
Browse files
[python] avoid copying full windows folder.
parent
cff54d51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
python-package/setup.py
python-package/setup.py
+4
-1
No files found.
python-package/setup.py
View file @
7689a4d0
...
@@ -42,7 +42,10 @@ def copy_files(use_gpu=False):
...
@@ -42,7 +42,10 @@ def copy_files(use_gpu=False):
if
not
os
.
path
.
isfile
(
'./_IS_SOURCE_PACKAGE.txt'
):
if
not
os
.
path
.
isfile
(
'./_IS_SOURCE_PACKAGE.txt'
):
copy_files_helper
(
'include'
)
copy_files_helper
(
'include'
)
copy_files_helper
(
'src'
)
copy_files_helper
(
'src'
)
copy_files_helper
(
'windows'
)
if
not
os
.
path
.
exists
(
"./compile/windows/"
):
os
.
makedirs
(
"./compile/windows/"
)
distutils
.
file_util
.
copy_file
(
"../windows/LightGBM.sln"
,
"./compile/windows/LightGBM.sln"
)
distutils
.
file_util
.
copy_file
(
"../windows/LightGBM.vcxproj"
,
"./compile/windows/LightGBM.vcxproj"
)
if
use_gpu
:
if
use_gpu
:
copy_files_helper
(
'compute'
)
copy_files_helper
(
'compute'
)
distutils
.
file_util
.
copy_file
(
"../CMakeLists.txt"
,
"./compile/"
)
distutils
.
file_util
.
copy_file
(
"../CMakeLists.txt"
,
"./compile/"
)
...
...
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