[opencv] 05/09: Build a python3 package.

Mattia Rizzolo mattia at debian.org
Mon Apr 3 19:18:08 UTC 2017


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

mattia pushed a commit to branch master
in repository opencv.

commit 58c99de8b858112cd476ec9eb9fa5679e4a8b537
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Mon Apr 3 20:28:31 2017 +0200

    Build a python3 package.
    
    LP: #1556156
    Closes: #799262
    Thanks: Kota Kato <orangain at gmail.com> for the initial patch
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 debian/control                | 39 ++++++++++++++++++++++++++++++++++++---
 debian/python-opencv.install  |  2 +-
 debian/python3-opencv.install |  1 +
 debian/rules                  |  4 ++--
 4 files changed, 40 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control
index 0fe061a..a98fde4 100644
--- a/debian/control
+++ b/debian/control
@@ -23,8 +23,10 @@ Build-Depends: debhelper (>= 9),
  libvtk6-dev,
  ocl-icd-opencl-dev,
  python-dev,
+ python3-dev,
  dh-python,
  python-numpy,
+ python3-numpy,
  doxygen,
  ant, default-jdk, javahelper
 Standards-Version: 3.9.8
@@ -943,9 +945,6 @@ Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-numpy-abi
 	libopencv-videoio3.1 (= ${binary:Version}),
 	libopencv-imgcodecs3.1 (= ${binary:Version}),
 	libopencv-imgproc3.1 (= ${binary:Version})
-Provides: ${python:Provides}
-Replaces: python2.3-opencv (<= 0.9.7-3)
-Conflicts: python2.3-opencv (<= 0.9.7-3)
 Description: Python bindings for the computer vision library
  This package contains Python bindings for the OpenCV (Open Computer Vision)
  library.
@@ -960,3 +959,37 @@ Description: Python bindings for the computer vision library
  analysis, structural analysis, motion analysis and object tracking, object
  recognition, camera calibration and 3D reconstruction.
 
+Package: python3-opencv
+Section: python
+Architecture: any
+Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}, python3-numpy-abi9,
+	python3-numpy (>= 1:1.6.1),
+	libopencv-viz3.0 (= ${binary:Version}),
+	libopencv-shape3.0 (= ${binary:Version}),
+	libopencv-superres3.0 (= ${binary:Version}),
+	libopencv-stitching3.0 (= ${binary:Version}),
+	libopencv-videostab3.0 (= ${binary:Version}),
+	libopencv-objdetect3.0 (= ${binary:Version}),
+	libopencv-photo3.0 (= ${binary:Version}),
+	libopencv-video3.0 (= ${binary:Version}),
+	libopencv-calib3d3.0 (= ${binary:Version}),
+	libopencv-features2d3.0 (= ${binary:Version}),
+	libopencv-flann3.0 (= ${binary:Version}),
+	libopencv-ml3.0 (= ${binary:Version}),
+	libopencv-highgui3.0 (= ${binary:Version}),
+	libopencv-videoio3.0 (= ${binary:Version}),
+	libopencv-imgcodecs3.0 (= ${binary:Version}),
+	libopencv-imgproc3.0 (= ${binary:Version})
+Description: Python 3 bindings for the computer vision library
+ This package contains Python 3 bindings for the OpenCV (Open Computer Vision)
+ library.
+ .
+ The Open Computer Vision Library is a collection of algorithms and sample
+ code for various computer vision problems. The library is compatible with
+ IPL (Intel's Image Processing Library) and, if available, can use IPP
+ (Intel's Integrated Performance Primitives) for better performance.
+ .
+ OpenCV provides low level portable data types and operators, and a set
+ of high level functionalities for video acquisition, image processing and
+ analysis, structural analysis, motion analysis and object tracking, object
+ recognition, camera calibration and 3D reconstruction.
diff --git a/debian/python-opencv.install b/debian/python-opencv.install
index 607c065..b2cc136 100644
--- a/debian/python-opencv.install
+++ b/debian/python-opencv.install
@@ -1 +1 @@
-usr/lib/python*
+usr/lib/python2*
diff --git a/debian/python3-opencv.install b/debian/python3-opencv.install
new file mode 100644
index 0000000..4606faa
--- /dev/null
+++ b/debian/python3-opencv.install
@@ -0,0 +1 @@
+usr/lib/python3*
diff --git a/debian/rules b/debian/rules
index 7c172dc..a1ef217 100755
--- a/debian/rules
+++ b/debian/rules
@@ -81,7 +81,7 @@ CMAKE_FLAGS = \
 	$(CMAKE_ARCH_FLAGS) 
 
 %:
-	dh $@ --buildsystem=cmake --with python2 --with javahelper --parallel
+	dh $@ --buildsystem=cmake --with python2,python3,javahelper --parallel
 
 override_dh_clean:
 	rm -rf modules/python/src2/hdr_parser.pyc
@@ -91,7 +91,7 @@ override_dh_clean:
 	dh_clean -O--buildsystem=cmake
 	-rm -rf obj-$(BUILDDIR_ARCH)
 	-rm -rf obj-$(BUILDDIR_ARCH)-static
-	-rm -rf modules/python/src2/__pycache__/hdr_parser.cpython-34.pyc
+	-rm -rf modules/python/src2/__pycache__
 
 override_dh_auto_configure: configure_dyn configure_static
 configure_dyn:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list