[ros-image-common] 01/01: add python3 support

Johannes Schauer josch at moszumanska.debian.org
Mon Oct 26 13:56:21 UTC 2015


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

josch pushed a commit to branch python3
in repository ros-image-common.

commit 2d862981f3101399b311e6eed40cf800fd78e11d
Author: Johannes 'josch' Schauer <josch at mister-muffin.de>
Date:   Sun Oct 18 12:09:19 2015 +0200

    add python3 support
---
 debian/control                        |  4 ++--
 debian/python-polled-camera.pyinstall |  2 --
 debian/python3-polled-camera.install  |  1 +
 debian/rules                          | 33 +++++----------------------------
 4 files changed, 8 insertions(+), 32 deletions(-)

diff --git a/debian/control b/debian/control
index 20f8a1b..f4abd11 100644
--- a/debian/control
+++ b/debian/control
@@ -79,10 +79,10 @@ Description: polled_camera ROS package
  polled camera driver node and requesting images from it. The package is
  currently for internal use as the API is still under development.
 
-Package: python-polled-camera
+Package: python3-polled-camera
 Section: python
 Architecture: all
-Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-genpy, python-std-msgs
+Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}, python3-genpy, python3-std-msgs
 Description: polled_camera ROS package - Python
  polled_camera contains a service and C++ helper classes for implementing a
  polled camera driver node and requesting images from it. The package is
diff --git a/debian/python-polled-camera.pyinstall b/debian/python-polled-camera.pyinstall
deleted file mode 100644
index 1224db9..0000000
--- a/debian/python-polled-camera.pyinstall
+++ /dev/null
@@ -1,2 +0,0 @@
-debian/tmp/usr/lib/python2*/*/polled_camera/*.py polled_camera
-debian/tmp/usr/lib/python2*/*/polled_camera/srv/*.py polled_camera.srv
diff --git a/debian/python3-polled-camera.install b/debian/python3-polled-camera.install
new file mode 100644
index 0000000..c564d68
--- /dev/null
+++ b/debian/python3-polled-camera.install
@@ -0,0 +1 @@
+usr/lib/python3*/*/polled_camera
diff --git a/debian/rules b/debian/rules
index bfb54ad..0d7d9b9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,32 +1,9 @@
 #!/usr/bin/make -f
-# See debhelper(7) (uncomment to enable)
-# output every command that modifies files on the build system.
-#export DH_VERBOSE = 1
-
-# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
-DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/default.mk
-
-# see FEATURE AREAS in dpkg-buildflags(1)
-#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-
-# see ENVIRONMENT in dpkg-buildflags(1)
-# package maintainers to append CFLAGS
-#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
-# package maintainers to append LDFLAGS
-#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-
-
-# main packaging script based on dh7 syntax
 %:
-	dh $@ --parallel --with=python2 --buildsystem=cmake
-
-# dh_make generated override targets
-# This is example for Cmake (See https://bugs.debian.org/641051 )
-#override_dh_auto_configure:
-#	dh_auto_configure -- \
-#	-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
-
-
+	dh $@ --parallel --with=python3 --buildsystem=cmake
 
+override_dh_auto_configure:
+	dh_auto_configure -- -DPython_ADDITIONAL_VERSIONS=3.4
 
+get-orig-source:
+	uscan --verbose --force-download --repack --compress xz

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



More information about the debian-science-commits mailing list