From: Ole Streicher <olebole@debian.org>
Date: Tue, 2 Aug 2016 09:06:36 +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 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/setup.py b/setup.py
index 42e77fb..e185399 100644
--- a/setup.py
+++ b/setup.py
@@ -70,6 +70,8 @@ generate_version_py(PACKAGENAME, VERSION, RELEASE,
 scripts = [fname for fname in glob.glob(os.path.join('scripts', '*'))
            if (os.path.basename(fname) != 'README.rst' and
                os.path.basename(fname) != 'fits2pdf.py')]
+if sys.version_info[0] != 3:
+    scripts = []
 
 # Get configuration information from all of the various subpackages.
 # See the docstring for setup_helpers.update_package_files for more
@@ -87,6 +89,8 @@ entry_point_list = conf.items('entry_points')
 for entry_point in entry_point_list:
     entry_points['console_scripts'].append('{0} = {1}'.format(entry_point[0],
                                                               entry_point[1]))
+if sys.version_info[0] != 3:
+    entry_points = {}
 
 # Include all .c files, recursively, including those generated by
 # Cython, since we can not do this in MANIFEST.in with a "dynamic"
