Add clean desktop file to setup.py
This commit is contained in:
parent
6c8e2b48e3
commit
4dbbb4d676
7
setup.py
7
setup.py
@ -239,7 +239,7 @@ if build_libtorrent:
|
|||||||
_ext_modules = [libtorrent]
|
_ext_modules = [libtorrent]
|
||||||
|
|
||||||
class build_trans(cmd.Command):
|
class build_trans(cmd.Command):
|
||||||
description = 'Compile .po files into .mo files'
|
description = 'Compile .po files into .mo files & create .desktop file'
|
||||||
|
|
||||||
user_options = [
|
user_options = [
|
||||||
('build-lib', None, "lib build folder"),
|
('build-lib', None, "lib build folder"),
|
||||||
@ -466,6 +466,11 @@ class clean(_clean):
|
|||||||
self.run_command(cmd_name)
|
self.run_command(cmd_name)
|
||||||
_clean.run(self)
|
_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 = {
|
cmdclass = {
|
||||||
'build': build,
|
'build': build,
|
||||||
'build_trans': build_trans,
|
'build_trans': build_trans,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user