From 3cbafec68d580d2c8f4faa5f69e8cb635ef82542 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 28 Nov 2016 12:57:07 +0000 Subject: [PATCH] [Setup] Move deluge egg-info clean to Clean --- setup.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index a98b2cb29..7ae0716cb 100755 --- a/setup.py +++ b/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)