From 5cffc8f7e0e7974fb4a1085dc3a6d9819f0b6fb9 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 2 Jan 2012 16:53:28 +0000 Subject: Add clean desktop file to setup.py --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 160a96fe0..f5d26fb22 100644 --- a/setup.py +++ b/setup.py @@ -239,7 +239,7 @@ if build_libtorrent: _ext_modules = [libtorrent] class build_trans(cmd.Command): - description = 'Compile .po files into .mo files' + description = 'Compile .po files into .mo files & create .desktop file' user_options = [ ('build-lib', None, "lib build folder") @@ -459,6 +459,11 @@ class clean(_clean): self.run_command(cmd_name) _clean.run(self) + desktop_data='deluge/data/share/applications/deluge.desktop' + if os.path.exists(desktop_data): + print("Deleting %s" % desktop_data) + os.remove(desktop_data) + cmdclass = { 'build': build, 'build_trans': build_trans, -- cgit