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:
0d7f364
)
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>
Wed, 25 Jan 2017 15:17:26 +0000
(15:17 +0000)
Gbp-Pq: Name only_python3-binaries.patch
setup.py
patch
|
blob
|
history
diff --git
a/setup.py
b/setup.py
index ea11de4b0094b4f4f726c1dedddfea6d8b84a8f8..aab845e74848184238a56239462f6d4c8afb3683 100755
(executable)
--- a/
setup.py
+++ b/
setup.py
@@
-53,7
+53,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',