[otb] 05/11: Enable Python 3 wrapper.

Bas Couwenberg sebastic at debian.org
Thu Jan 25 12:28:52 UTC 2018


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

sebastic pushed a commit to branch master
in repository otb.

commit 7543586bdb56cfa192eacc8d31120063a87ae9a7
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Thu Jan 25 08:09:45 2018 +0100

    Enable Python 3 wrapper.
---
 debian/changelog                |  1 +
 debian/control                  | 23 +++++++++++++++++++++--
 debian/control.in               | 23 +++++++++++++++++++++--
 debian/python3-otb.install      |  3 +++
 debian/rules                    |  9 +++++++--
 debian/source.lintian-overrides |  3 ---
 6 files changed, 53 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8924cdb..62253f9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ otb (6.4.0~rc1+dfsg-1) UNRELEASED; urgency=medium
   * New upstream release candidate.
   * Update copyright-format URL to use HTTPS.
   * Drop patches, included upstream.
+  * Enable Python 3 wrapper.
 
  -- Bas Couwenberg <sebastic at debian.org>  Thu, 25 Jan 2018 07:50:01 +0100
 
diff --git a/debian/control b/debian/control
index b931749..6808c4e 100644
--- a/debian/control
+++ b/debian/control
@@ -41,6 +41,8 @@ Build-Depends: debhelper (>= 9),
                pkg-kde-tools,
                python-dev,
                python-numpy,
+               python3-dev,
+               python3-numpy,
                swig
 Standards-Version: 4.1.2
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/otb.git
@@ -918,13 +920,30 @@ Depends: libotb-apps (= ${binary:Version}),
          ${misc:Depends},
          python,
          dh-python
-Description: ORFEO Toolbox Python API for applications
+Description: ORFEO Toolbox Python API for applications (Python 2)
  ORFEO Toolbox (OTB) is distributed as an open source library of image
  processing algorithms. OTB is based on the medical image processing library
  ITK and offers particular functionalities for remote sensing image processing
  in general and for high spatial resolution images in particular.
  .
- This package contains the Python API that can be used to create Python
+ This package contains the Python 2 API that can be used to create Python
+ versions of existing OTB applications provided by the libotb-apps package.
+
+Package: python3-otb
+Architecture: any
+Section: python
+Depends: libotb-apps (= ${binary:Version}),
+         ${shlibs:Depends},
+         ${misc:Depends},
+         python3,
+         dh-python
+Description: ORFEO Toolbox Python API for applications (Python 3)
+ ORFEO Toolbox (OTB) is distributed as an open source library of image
+ processing algorithms. OTB is based on the medical image processing library
+ ITK and offers particular functionalities for remote sensing image processing
+ in general and for high spatial resolution images in particular.
+ .
+ This package contains the Python 3 API that can be used to create Python
  versions of existing OTB applications provided by the libotb-apps package.
 
 Package: libotb
diff --git a/debian/control.in b/debian/control.in
index 0b9505f..0b4f851 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -41,6 +41,8 @@ Build-Depends: debhelper (>= 9),
                pkg-kde-tools,
                python-dev,
                python-numpy,
+               python3-dev,
+               python3-numpy,
                swig
 Standards-Version: 4.1.2
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/otb.git
@@ -918,13 +920,30 @@ Depends: libotb-apps (= ${binary:Version}),
          ${misc:Depends},
          python,
          dh-python
-Description: ORFEO Toolbox Python API for applications
+Description: ORFEO Toolbox Python API for applications (Python 2)
  ORFEO Toolbox (OTB) is distributed as an open source library of image
  processing algorithms. OTB is based on the medical image processing library
  ITK and offers particular functionalities for remote sensing image processing
  in general and for high spatial resolution images in particular.
  .
- This package contains the Python API that can be used to create Python
+ This package contains the Python 2 API that can be used to create Python
+ versions of existing OTB applications provided by the libotb-apps package.
+
+Package: python3-otb
+Architecture: any
+Section: python
+Depends: libotb-apps (= ${binary:Version}),
+         ${shlibs:Depends},
+         ${misc:Depends},
+         python3,
+         dh-python
+Description: ORFEO Toolbox Python API for applications (Python 3)
+ ORFEO Toolbox (OTB) is distributed as an open source library of image
+ processing algorithms. OTB is based on the medical image processing library
+ ITK and offers particular functionalities for remote sensing image processing
+ in general and for high spatial resolution images in particular.
+ .
+ This package contains the Python 3 API that can be used to create Python
  versions of existing OTB applications provided by the libotb-apps package.
 
 Package: libotb
diff --git a/debian/python3-otb.install b/debian/python3-otb.install
new file mode 100644
index 0000000..1c6302c
--- /dev/null
+++ b/debian/python3-otb.install
@@ -0,0 +1,3 @@
+# OTB python3 library and wrappers
+usr/lib/otb/python3/*.py
+usr/lib/otb/python3/*.so
diff --git a/debian/rules b/debian/rules
index 9fe635c..c768862 100755
--- a/debian/rules
+++ b/debian/rules
@@ -53,7 +53,8 @@ CMAKE_FLAGS = \
 	-DOTB_USE_QT4:BOOL=ON \
 	-DOTB_USE_QWT:BOOL=ON \
 	-DOTB_USE_SHARK:BOOL=ON \
-	-DOTB_WRAP_PYTHON:BOOL=ON
+	-DOTB_WRAP_PYTHON:BOOL=ON \
+	-DOTB_WRAP_PYTHON3:BOOL=ON
 
 
 DEBPKGNAME     := $(DEB_SOURCE)
@@ -88,7 +89,7 @@ override_dh_shlibdeps:
 override_dh_install:
 	rm -f $(CURDIR)/debian/tmp/usr/share/doc/OTB-$(OTB_VERSION_SONAME)/LICENSE
 	rm -f $(CURDIR)/debian/tmp/usr/share/doc/OTB-$(OTB_VERSION_SONAME)/VERSION
-	rm -f $(CURDIR)/debian/tmp/usr/lib/otb/python/otbApplication.pyc
+	rm -f $(CURDIR)/debian/tmp/usr/lib/otb/python*/otbApplication.pyc
 	dh_install --list-missing
 	rm -f $(CURDIR)/debian/$(pkglib)/usr/lib/$(DEB_HOST_MULTIARCH)/libOTBWrapper*
 	rm -f $(CURDIR)/debian/$(pkgdev)/usr/lib/$(DEB_HOST_MULTIARCH)/libOTBWrapper*
@@ -103,4 +104,8 @@ override_dh_python2:
 	dh_python2
 	dh_numpy
 
+override_dh_python3:
+	dh_python3
+	dh_numpy3
+
 .PHONY: templates
diff --git a/debian/source.lintian-overrides b/debian/source.lintian-overrides
deleted file mode 100644
index e8d0ff6..0000000
--- a/debian/source.lintian-overrides
+++ /dev/null
@@ -1,3 +0,0 @@
-# Python 3 not supported yet
-otb source: python-foo-but-no-python3-foo python-otb
-

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/otb.git



More information about the Pkg-grass-devel mailing list