Skip to content

Commit

Permalink
[dev] remove build artifacts for cleanup (dmlc#7166)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhett-Ying authored Feb 28, 2024
1 parent ca35563 commit 5f653c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ def cleanup():
remove_lib("dgl_sparse")
remove_lib("graphbolt")

# Remove build artifacts.
dir_to_remove = ["build", "dist", "dgl.egg-info"]
for dir_ in dir_to_remove:
print(f"Removing {dir_}")
if os.path.isdir(dir_):
shutil.rmtree(dir_)


def config_cython():
"""Try to configure cython and return cython configuration"""
Expand Down

0 comments on commit 5f653c3

Please sign in to comment.