summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2012-01-09 19:58:37 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2012-01-09 22:19:24 +0000
commit25d930b3076b84f13022c1ff5110c5aceb637d55 (patch)
treec814cb3a8ed94677344e5f6174eece089956abca
parent083c7fbb32726f25d13204d497d929c98ba04d9d (diff)
downloaddeluge-25d930b3.zip
deluge-25d930b3.tar.gz
deluge-25d930b3.tar.bz2
Fix #1929 : Update setup.py to clean deluge*.egg_info dir from root dir
-rwxr-xr-x[-rw-r--r--]setup.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index f5d26fb..5b0183c 100644..100755
--- 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:
@@ -450,6 +450,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)]