mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-19 19:14:55 +00:00
[Setup] Move deluge egg-info clean to Clean
This commit is contained in:
parent
a48c01c3a5
commit
3cbafec68d
1 changed files with 6 additions and 6 deletions
12
setup.py
12
setup.py
|
@ -313,19 +313,19 @@ class CleanPlugins(cmd.Command):
|
|||
os.remove(os.path.join(path, fpath))
|
||||
os.removedirs(path)
|
||||
|
||||
root_egg_info_dir_path = 'deluge*.egg-info'
|
||||
|
||||
class Clean(_clean):
|
||||
sub_commands = _clean.sub_commands + [('clean_plugins', None)]
|
||||
|
||||
def run(self):
|
||||
# Remove deluge egg-info.
|
||||
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)]
|
||||
|
||||
def run(self):
|
||||
# Run all sub-commands (at least those that need to be run)
|
||||
for cmd_name in self.get_sub_commands():
|
||||
self.run_command(cmd_name)
|
||||
|
|
Loading…
Add table
Reference in a new issue