From: Ole Streicher <olebole@debian.org>
Date: Mon, 24 Apr 2017 16:34:35 +0200
Subject: Install the scripts only for the Python 3 version

However, they will not be installed in python3-ginga, but are taken away
by the ginga package.
---
 setup.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/setup.py b/setup.py
index ad8a69d..fa2d916 100755
--- a/setup.py
+++ b/setup.py
@@ -78,6 +78,9 @@ entry_points = {'console_scripts': []}
 for key, value in conf.items('entry_points'):
     entry_points['console_scripts'].append('{0} = {1}'.format(key, value))
 
+if sys.version_info[0] != 3:
+    entry_points = {}
+
 # Note: usually the `affiliated_package/data` folder is used for data files.
 # In Gammapy we use `gammapy/data` as a sub-package.
 # Uncommenting the following line was needed to avoid an error during
