projects
/
python-astropy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfe17a2
)
Install the scripts only for the Python 3 version
author
Ole Streicher
<olebole@debian.org>
Tue, 13 Dec 2016 08:41:39 +0000
(09:41 +0100)
committer
Ole Streicher
<olebole@debian.org>
Tue, 5 Dec 2017 10:16:34 +0000
(10:16 +0000)
Gbp-Pq: Name only_python3-binaries.patch
setup.py
patch
|
blob
|
history
diff --git
a/setup.py
b/setup.py
index 1340b7fb43837d313344d9aae509b593697dab2e..ed6f40fffd6a1cd9f229992d39d45dfc41da5137 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',