[med-svn] [gubbins] 01/01: Handle python files separately from upstream build system

Andreas Tille tille at debian.org
Sun Nov 29 21:59:15 UTC 2015


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

tille pushed a commit to branch master
in repository gubbins.

commit d369466bbb55b3a4a89f7ca9e8e6874c813cd45f
Author: Andreas Tille <tille at debian.org>
Date:   Sun Nov 29 22:58:51 2015 +0100

    Handle python files separately from upstream build system
---
 .../do_not_handle_python_by_upstream_build_system.patch    | 14 ++++++++++++++
 debian/patches/series                                      |  1 +
 debian/rules                                               |  9 ++++++---
 3 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/debian/patches/do_not_handle_python_by_upstream_build_system.patch b/debian/patches/do_not_handle_python_by_upstream_build_system.patch
new file mode 100644
index 0000000..015768e
--- /dev/null
+++ b/debian/patches/do_not_handle_python_by_upstream_build_system.patch
@@ -0,0 +1,14 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Thu, 19 Nov 2015 10:45:48 +0100
+Description: Installation for Python files does not work that
+ way and this is done manually in debian/rules
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,5 +1,5 @@
+ EXTRA_DIST=debian/* tests/*.h tests/data/*
+-SUBDIRS=src release python
++SUBDIRS=src release
+ ACLOCAL_AMFLAGS=-I m4
+ 
+ source: dist
diff --git a/debian/patches/series b/debian/patches/series
index 34d0b1c..b4f2541 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 add_missing_lib_for_check.patch
+do_not_handle_python_by_upstream_build_system.patch
diff --git a/debian/rules b/debian/rules
index e004214..a5f9518 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,9 +7,12 @@
 	dh $@  --with autoreconf --with python3
 
 override_dh_auto_install:
-	# current install target using brew does not work
-	# using dh_install instead
+	dh_auto_install
+	# pybuild --install --system=distutils
+	cd python && \
+	python setup.py install --root=../debian/gubbins --install-layout=deb --install-lib=/usr/share/gubbins --install-scripts=/usr/share/gubbins
 
 override_dh_clean:
 	dh_clean
-	rm -rf python/.eggs
+	rm -rf python/*.egg-info python/build  python/Makefile
+	find . -name "*.pyc" -delete

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/gubbins.git



More information about the debian-med-commit mailing list