Fix data_files in setup.py

This commit is contained in:
Calum Lind 2015-09-20 18:39:20 +01:00
parent 7b7e61485e
commit 2c5025644c

View File

@ -34,6 +34,10 @@ except ImportError:
def windows_check(): def windows_check():
return platform.system() in ('Windows', 'Microsoft') return platform.system() in ('Windows', 'Microsoft')
def osx_check():
return platform.system() == "Darwin"
desktop_data = 'deluge/ui/data/share/applications/deluge.desktop' desktop_data = 'deluge/ui/data/share/applications/deluge.desktop'
@ -268,7 +272,7 @@ cmdclass = {
# Data files to be installed to the system. # Data files to be installed to the system.
_data_files = [] _data_files = []
if not windows_check() or not osx_check(): if not windows_check() and not osx_check():
_data_files = [ _data_files = [
('share/icons/hicolor/scalable/apps', ['deluge/ui/data/icons/scalable/apps/deluge.svg']), ('share/icons/hicolor/scalable/apps', ['deluge/ui/data/icons/scalable/apps/deluge.svg']),
('share/icons/hicolor/128x128/apps', ['deluge/ui/data/icons/hicolor/128x128/apps/deluge.png']), ('share/icons/hicolor/128x128/apps', ['deluge/ui/data/icons/hicolor/128x128/apps/deluge.png']),