[Debian-astro-commits] [python-astropy] 01/01: Install Python 3 versions of the scripts

Ole Streicher olebole at moszumanska.debian.org
Tue May 10 02:29:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch debian
in repository python-astropy.

commit 1a6bfa0919635b60a64efc1e7df80910c0701f7d
Author: Ole Streicher <ole at aip.de>
Date:   Mon May 9 23:14:21 2016 -0300

    Install Python 3 versions of the scripts
---
 debian/changelog                           |  6 ++++++
 debian/control                             |  6 +++---
 debian/patches/only_python3-binaries.patch | 14 ++++++++++++++
 debian/patches/series                      |  1 +
 4 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e8b4fa3..5237d78 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-astropy (1.1.2-2) UNRELEASED; urgency=low
+
+  * Install Python 3 versions of the scripts
+
+ -- Ole Streicher <olebole at debian.org>  Mon, 09 May 2016 23:13:29 -0300
+
 python-astropy (1.1.2-1) unstable; urgency=low
 
   * Add ASCL-Id
diff --git a/debian/control b/debian/control
index 3e680c0..bc2a5f9 100644
--- a/debian/control
+++ b/debian/control
@@ -97,10 +97,10 @@ Description: Core functionality for performing astrophysics with Python (doc)
 Package: astropy-utils
 Architecture: all
 Section: science
-Depends: python-astropy (<< ${source:Version}.1~),
-         python-astropy (>= ${source:Version}),
+Depends: python3-astropy (<< ${source:Version}.1~),
+         python3-astropy (>= ${source:Version}),
          ${misc:Depends},
-         ${python:Depends}
+         ${python3:Depends}
 Breaks: fitscheck (<< 1:3.1.2-1~),
         pyfits-utils (<<1:3.3-4~),
         python-pyfits (<< 1:3.0.7-4~)
diff --git a/debian/patches/only_python3-binaries.patch b/debian/patches/only_python3-binaries.patch
new file mode 100644
index 0000000..cbdc0fe
--- /dev/null
+++ b/debian/patches/only_python3-binaries.patch
@@ -0,0 +1,14 @@
+Author: Ole Streicher <olebole at debian.org>
+Description: Install the scripts only for the Python 3 version
+--- a/setup.py
++++ b/setup.py
+@@ -53,7 +53,8 @@
+ # 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',
diff --git a/debian/patches/series b/debian/patches/series
index 5dd23ef..7e8fe32 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ mark_known_failures.patch
 disable_helper.patch
 fix_for_pytest_2.8.patch
 fix_for_cfitsio_3380.patch
+only_python3-binaries.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/python-astropy.git



More information about the Debian-astro-commits mailing list