[ros-bond-core] 01/01: add python3 support

Johannes Schauer josch at moszumanska.debian.org
Mon Oct 26 13:55:08 UTC 2015


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

josch pushed a commit to branch python3
in repository ros-bond-core.

commit d34be7362254f472836496ada466269ca4e9d643
Author: Johannes 'josch' Schauer <josch at mister-muffin.de>
Date:   Sun Oct 18 11:59:56 2015 +0200

    add python3 support
---
 debian/control                 | 14 +++++++-------
 debian/python-bond.pyinstall   |  2 --
 debian/python-bondpy.install   |  1 -
 debian/python-bondpy.pyinstall |  1 -
 debian/python-smclib.pyinstall |  1 -
 debian/python3-bond.install    |  1 +
 debian/python3-bondpy.install  |  2 ++
 debian/python3-smclib.install  |  1 +
 debian/rules                   | 33 +++++----------------------------
 9 files changed, 16 insertions(+), 40 deletions(-)

diff --git a/debian/control b/debian/control
index 1394fce..5399220 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Uploaders: Thomas Moulard <thomas.moulard at gmail.com>,
            Jochen Sprickerhof <debian at jochen.sprickerhof.de>,
            Leopold Palomo-Avellaneda <leo at alaxarxa.net>
 Build-Depends: debhelper (>= 9), catkin, message-generation, libstd-msgs-dev, dh-exec (>=0.3),
-		python-all (>= 2.6.6-3), python-setuptools (>=0.6b3),
+		python3-all (>= 2.6.6-3), python3-setuptools (>=0.6b3),
 		cmake-modules, libroscpp-dev, librosconsole-dev,
 		libros-rosgraph-msgs-dev, libxmlrpcpp-dev, uuid-dev,
 		libroscpp-core-dev, libboost-dev,
@@ -28,10 +28,10 @@ Description: Messages related to ROS bond_core - development
  either cleanly or by crashing. The bond remains connected until it is either
  broken explicitly or until a heartbeat times out. Development package.
 
-Package: python-bond
+Package: python3-bond
 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: Messages related to ROS bond_core - Python
  A bond allows two processes, A and B, to know when the other has terminated,
  either cleanly or by crashing. The bond remains connected until it is either
@@ -62,10 +62,10 @@ Description: State Machine Compiler (SMC)
  This package contains the libraries that a compiled state machine
  depends on, but it does not contain the compiler itself.
 
-Package: python-smclib
+Package: python3-smclib
 Section: python
 Architecture: any
-Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Description: State Machine Compiler (SMC) - Python package
  The State Machine Compiler (SMC) from http://smc.sourceforge.net/
  converts a language-independent description of a state machine
@@ -95,10 +95,10 @@ Description: ROS bondcpp library
  .
  This package contains the library.
 
-Package: python-bondpy
+Package: python3-bondpy
 Section: python
 Architecture: any
-Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-bond, python-rospy, python-smclib
+Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}, python3-bond, python3-rospy, python3-smclib
 Description: Python implementation of bond
  Bond is a mechanism for checking when another process has terminated. A
  bond allows two processes, A and B, to know when the other has terminated, 
diff --git a/debian/python-bond.pyinstall b/debian/python-bond.pyinstall
deleted file mode 100644
index c6e5b58..0000000
--- a/debian/python-bond.pyinstall
+++ /dev/null
@@ -1,2 +0,0 @@
-debian/tmp/usr/lib/python2*/*/bond/*.py bond
-debian/tmp/usr/lib/python2*/*/bond/msg/*.py bond.msg
diff --git a/debian/python-bondpy.install b/debian/python-bondpy.install
deleted file mode 100644
index a458e8b..0000000
--- a/debian/python-bondpy.install
+++ /dev/null
@@ -1 +0,0 @@
-debian/tmp/usr/share/bondpy
diff --git a/debian/python-bondpy.pyinstall b/debian/python-bondpy.pyinstall
deleted file mode 100644
index 90fab45..0000000
--- a/debian/python-bondpy.pyinstall
+++ /dev/null
@@ -1 +0,0 @@
-debian/tmp/usr/lib/python2*/*/bondpy/*.py bondpy
diff --git a/debian/python-smclib.pyinstall b/debian/python-smclib.pyinstall
deleted file mode 100644
index b389a0d..0000000
--- a/debian/python-smclib.pyinstall
+++ /dev/null
@@ -1 +0,0 @@
-debian/tmp/usr/lib/python2*/*/smclib/*.py smclib
diff --git a/debian/python3-bond.install b/debian/python3-bond.install
new file mode 100644
index 0000000..deb4a59
--- /dev/null
+++ b/debian/python3-bond.install
@@ -0,0 +1 @@
+usr/lib/python3*/*/bond
diff --git a/debian/python3-bondpy.install b/debian/python3-bondpy.install
new file mode 100644
index 0000000..f0e118c
--- /dev/null
+++ b/debian/python3-bondpy.install
@@ -0,0 +1,2 @@
+usr/share/bondpy
+usr/lib/python3*/*/bondpy
diff --git a/debian/python3-smclib.install b/debian/python3-smclib.install
new file mode 100644
index 0000000..015a257
--- /dev/null
+++ b/debian/python3-smclib.install
@@ -0,0 +1 @@
+usr/lib/python3*/*/smclib
diff --git a/debian/rules b/debian/rules
index e48a70f..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.
-#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
-
-# debmake generated override targets
-# This is example for Cmake (See http://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-bond-core.git



More information about the debian-science-commits mailing list