$OpenBSD$

Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -19,9 +19,9 @@ import subprocess
 import sys
 import shutil
 
-from distutils.core import setup
+from setuptools import setup
 from distutils.command.build import build
-from distutils.command.install import install
+from setuptools.command.install import install
 from distutils.command.install_data import install_data
 
 
@@ -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/icons', ['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')
@@ -285,16 +285,16 @@ install_requires = [
     'psutil',
     'qtawesome>=0.4.1',
     'qtpy>=1.2.0',
-    'pickleshare',
+    #'pickleshare',
     'pyzmq',
     'chardet>=2.0.0',
     'numpydoc',
     # Packages for pyqt5 are only available in
     # Python 3
-    'pyqt5<5.10;python_version>="3"',
+    #'pyqt5<5.10;python_version>="3"',
     # This is only needed for our wheels on Linux.
     # See issue #3332
-    'pyopengl;platform_system=="Linux"'
+    'pyopengl'
 ]
 
 extras_require = {
