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
041ef701
"python-package/vscode:/vscode.git/clone" did not exist on "b7120d27db6d5a7c3c3fe6b0a823552bfe2b4a85"
Commit
041ef701
authored
Jun 22, 2017
by
Guolin Ke
Browse files
[python] fix sdist package
parent
01c7b97d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
python-package/setup.py
python-package/setup.py
+4
-3
No files found.
python-package/setup.py
View file @
041ef701
...
@@ -55,8 +55,9 @@ if __name__ == "__main__":
...
@@ -55,8 +55,9 @@ if __name__ == "__main__":
raise
Exception
(
'Cannot copy ../compute folder'
)
raise
Exception
(
'Cannot copy ../compute folder'
)
distutils
.
file_util
.
copy_file
(
"../CMakeLists.txt"
,
"./lightgbm/"
)
distutils
.
file_util
.
copy_file
(
"../CMakeLists.txt"
,
"./lightgbm/"
)
distutils
.
file_util
.
copy_file
(
"../VERSION.txt"
,
"./lightgbm/"
)
distutils
.
file_util
.
copy_file
(
"../VERSION.txt"
,
"./lightgbm/"
)
file_flag
=
open
(
"./_IS_SOURCE_PACKAGE.txt"
,
'w'
)
if
build_sdist
:
file_flag
.
close
()
file_flag
=
open
(
"./_IS_SOURCE_PACKAGE.txt"
,
'w'
)
file_flag
.
close
()
if
not
os
.
path
.
exists
(
"build"
):
if
not
os
.
path
.
exists
(
"build"
):
os
.
makedirs
(
"build"
)
os
.
makedirs
(
"build"
)
...
@@ -119,5 +120,5 @@ if __name__ == "__main__":
...
@@ -119,5 +120,5 @@ if __name__ == "__main__":
data_files
=
data_files
,
data_files
=
data_files
,
license
=
'The MIT License(https://github.com/Microsoft/LightGBM/blob/master/LICENSE)'
,
license
=
'The MIT License(https://github.com/Microsoft/LightGBM/blob/master/LICENSE)'
,
url
=
'https://github.com/Microsoft/LightGBM'
)
url
=
'https://github.com/Microsoft/LightGBM'
)
if
os
.
path
.
isfile
(
'./_IS_SOURCE_PACKAGE.txt'
):
if
build_sdist
and
os
.
path
.
isfile
(
'./_IS_SOURCE_PACKAGE.txt'
):
os
.
remove
(
'./_IS_SOURCE_PACKAGE.txt'
)
os
.
remove
(
'./_IS_SOURCE_PACKAGE.txt'
)
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