diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 index afe8ec28b..6ca75cd76 --- a/setup.py +++ b/setup.py @@ -17,9 +17,9 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, write to: -# The Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor -# Boston, MA 02110-1301, USA. +# The Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor +# Boston, MA 02110-1301, USA. # try: @@ -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)]