MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / run

Method run

python-package/setup.py:280–291  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

278class 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
294if __name__ == "__main__":

Callers 1

runMethod · 0.45

Calls 2

copy_filesFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected