[Setup] Move deluge egg-info clean to Clean
This commit is contained in:
parent
a48c01c3a5
commit
3cbafec68d
12
setup.py
12
setup.py
|
@ -313,19 +313,19 @@ class CleanPlugins(cmd.Command):
|
||||||
os.remove(os.path.join(path, fpath))
|
os.remove(os.path.join(path, fpath))
|
||||||
os.removedirs(path)
|
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):
|
for path in glob.glob(root_egg_info_dir_path):
|
||||||
print('Deleting %s' % path)
|
print('Deleting %s' % path)
|
||||||
for fpath in os.listdir(path):
|
for fpath in os.listdir(path):
|
||||||
os.remove(os.path.join(path, fpath))
|
os.remove(os.path.join(path, fpath))
|
||||||
os.removedirs(path)
|
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)
|
# Run all sub-commands (at least those that need to be run)
|
||||||
for cmd_name in self.get_sub_commands():
|
for cmd_name in self.get_sub_commands():
|
||||||
self.run_command(cmd_name)
|
self.run_command(cmd_name)
|
||||||
|
|
Loading…
Reference in New Issue