Commit d6c8f780 authored by Ole Streicher's avatar Ole Streicher

Switch to Python 3

parent 3c6b8bb3
......@@ -5,10 +5,10 @@ Maintainer: Debian Astronomy Maintainers <debian-astro-maintainers@lists.alioth.
Uploaders: Ole Streicher <olebole@debian.org>
Build-Depends: debhelper (>= 11),
libcpl-dev (>= 5.3.1),
python,
python-astropy,
python-cpl,
python-sphinx
python3,
python3-astropy,
python3-cpl,
python3-sphinx
Standards-Version: 4.1.4
Homepage: https://www.eso.org/sci/software/pipelines/sinfoni/sinfoni-pipe-recipes.html
Vcs-Git: https://salsa.debian.org/debian-astro-team/cpl-plugin-sinfo.git
......@@ -17,7 +17,7 @@ Vcs-Browser: https://salsa.debian.org/debian-astro-team/cpl-plugin-sinfo
Package: cpl-plugin-sinfo
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Recommends: esorex|python-cpl
Recommends: esorex | python3-cpl
Suggests: cpl-plugin-sinfo-calib (= ${binary:Version}), cpl-plugin-sinfo-doc
Multi-Arch: same
Description: ESO data reduction pipeline for the SINFONI instrument
......
#!/usr/bin/env python
#!/usr/bin/env python3
import cpl
import os
......
#!/usr/bin/env python
#!/usr/bin/env python3
import cpl
import os
......@@ -139,7 +139,7 @@ pipeline = sys.argv[1]
cpl.Recipe.path = "recipes"
recipes = [ cpl.Recipe(name) for name, version in cpl.Recipe.list() ]
oca = file(os.path.join("calib", "gasgano", "config", pipeline + ".oca")).read()
oca = open(os.path.join("calib", "gasgano", "config", pipeline + ".oca")).read()
oca = oca[oca.find("action"):]
recipes_oca = [recipe for recipe in recipes if recipe.__name__ in oca]
recipes_oca.sort(key = lambda x: x.__name__)
......
......@@ -31,12 +31,12 @@ override_dh_install: debian_files
override_dh_installman-indep:
mkdir -p man
python debian/create_manpage.py ${PIPELINE}
python3 debian/create_manpage.py ${PIPELINE}
dh_installman
override_dh_installdocs-indep:
mkdir -p sphinx
python debian/create_sphinx.py ${PIPELINE}
python3 debian/create_sphinx.py ${PIPELINE}
sphinx-build sphinx sphinx/html
dh_installdocs
......
Tests: test-recipe.py
Depends: cpl-plugin-sinfo, python-cpl, python-astropy
Depends: cpl-plugin-sinfo, python3-cpl, python3-astropy
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Simple pipeline test by loading all recipes and printing some
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment