mirror of
https://github.com/logos-storage/deluge.git
synced 2026-01-07 23:53:12 +00:00
Fix #1929 : Update setup.py to clean deluge*.egg_info dir from root dir
This commit is contained in:
parent
a01f45cc7a
commit
f299be0eb9
8
setup.py
Normal file → Executable file
8
setup.py
Normal file → Executable file
@ -457,6 +457,14 @@ class clean_plugins(cmd.Command):
|
||||
os.remove(os.path.join(path, fpath))
|
||||
os.removedirs(path)
|
||||
|
||||
ROOT_EGG_INFO_DIR_PATH = "deluge*.egg-info"
|
||||
|
||||
for path in glob.glob(ROOT_EGG_INFO_DIR_PATH):
|
||||
print("Deleting %s" % path)
|
||||
for fpath in os.listdir(path):
|
||||
os.remove(os.path.join(path, fpath))
|
||||
os.removedirs(path)
|
||||
|
||||
class clean(_clean):
|
||||
sub_commands = _clean.sub_commands + [('clean_plugins', None)]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user