$OpenBSD$

Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -76,7 +76,7 @@ def get_subpackages(name):
 
 def get_data_files():
     """Return data_files in a platform dependent manner"""
-    if sys.platform.startswith('linux'):
+    if sys.platform.startswith('linux') or sys.platform.startswith('openbsd'):
         if PY3:
             data_files = [('share/applications', ['scripts/spyder3.desktop']),
                           ('share/pixmaps', ['img_src/spyder3.png']),
@@ -207,7 +207,7 @@ except ImportError:
 # NOTE: the '[...]_win_post_install.py' script is installed even on non-Windows
 # platforms due to a bug in pip installation process (see Issue 1158)
 SCRIPTS = ['%s_win_post_install.py' % NAME]
-if PY3 and sys.platform.startswith('linux'):
+if PY3 and ( sys.platform.startswith('linux') or sys.platform.startswith('openbsd') ):
     SCRIPTS.append('spyder3')
 else:
     SCRIPTS.append('spyder')
