(self)
| 278 | class CustomSdist(sdist): |
| 279 | |
| 280 | def run(self): |
| 281 | copy_files(use_gpu=True) |
| 282 | open(os.path.join(CURRENT_DIR, '_IS_SOURCE_PACKAGE.txt'), 'w').close() |
| 283 | if os.path.exists(os.path.join(CURRENT_DIR, 'lightgbmmt', 'Release')): |
| 284 | shutil.rmtree(os.path.join(CURRENT_DIR, 'lightgbmmt', 'Release')) |
| 285 | if os.path.exists(os.path.join(CURRENT_DIR, 'lightgbmmt', 'windows', 'x64')): |
| 286 | shutil.rmtree(os.path.join(CURRENT_DIR, 'lightgbmmt', 'windows', 'x64')) |
| 287 | if os.path.isfile(os.path.join(CURRENT_DIR, 'lightgbmmt', 'lib_lightgbm.so')): |
| 288 | os.remove(os.path.join(CURRENT_DIR, 'lightgbmmt', 'lib_lightgbm.so')) |
| 289 | sdist.run(self) |
| 290 | if os.path.isfile(os.path.join(CURRENT_DIR, '_IS_SOURCE_PACKAGE.txt')): |
| 291 | os.remove(os.path.join(CURRENT_DIR, '_IS_SOURCE_PACKAGE.txt')) |
| 292 | |
| 293 | |
| 294 | if __name__ == "__main__": |
no test coverage detected