From 2c5025644cf8a5c35d08bdd9604e02665e12a023 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 20 Sep 2015 18:39:20 +0100 Subject: [PATCH] Fix data_files in setup.py --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 729b1ba16..ed0ccc69b 100755 --- a/setup.py +++ b/setup.py @@ -34,6 +34,10 @@ except ImportError: def windows_check(): return platform.system() in ('Windows', 'Microsoft') + +def osx_check(): + return platform.system() == "Darwin" + desktop_data = 'deluge/ui/data/share/applications/deluge.desktop' @@ -268,7 +272,7 @@ cmdclass = { # Data files to be installed to the system. _data_files = [] -if not windows_check() or not osx_check(): +if not windows_check() and not osx_check(): _data_files = [ ('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']),