"python-package/vscode:/vscode.git/clone" did not exist on "b7120d27db6d5a7c3c3fe6b0a823552bfe2b4a85"
Commit 041ef701 authored by Guolin Ke's avatar Guolin Ke
Browse files

[python] fix sdist package

parent 01c7b97d
...@@ -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')
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