Install the scripts only for the Python 3 version
authorOle Streicher <olebole@debian.org>
Tue, 13 Dec 2016 08:41:39 +0000 (09:41 +0100)
committerOle Streicher <olebole@debian.org>
Tue, 19 Dec 2017 10:35:47 +0000 (10:35 +0000)
Gbp-Pq: Name only_python3-binaries.patch

setup.py

index b907611baf12715df6510d658975984a059692dd..5c4fc6ed11e4288193b1ed25fa97c0cce85f460f 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -47,7 +47,8 @@ package_info['package_data'].setdefault('astropy', []).append('data/*')
 # Add any necessary entry points
 entry_points = {}
 # Command-line scripts
-entry_points['console_scripts'] = [
+if sys.version_info[0] == 3:
+    entry_points['console_scripts'] = [
     'fits2bitmap = astropy.visualization.scripts.fits2bitmap:main',
     'fitscheck = astropy.io.fits.scripts.fitscheck:main',
     'fitsdiff = astropy.io.fits.scripts.fitsdiff:main',