[med-svn] [python-freecontact] 05/06: once libboost-python-dev will be provided for Python3 we could even have python3 packages but currently not
Andreas Tille
tille at debian.org
Fri Aug 21 13:31:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository python-freecontact.
commit ef3a59e3c6b09746a4bdceed1fe5358a8fbd22a8
Author: Andreas Tille <tille at debian.org>
Date: Fri Aug 21 15:27:36 2015 +0200
once libboost-python-dev will be provided for Python3 we could even have python3 packages but currently not
---
debian/control | 17 ++++++++++++++---
debian/rules | 21 +++++++++++----------
2 files changed, 25 insertions(+), 13 deletions(-)
diff --git a/debian/control b/debian/control
index edfcaaa..952e468 100644
--- a/debian/control
+++ b/debian/control
@@ -5,10 +5,11 @@ Uploaders: Laszlo Kajan <lkajan at debian.org>,
Section: python
Priority: optional
Build-Depends: debhelper (>= 9~),
+ dh-python,
libboost-python-dev,
- libfreecontact0-dev,
- python-all-dev,
- python-all-dbg
+ libfreecontact-dev,
+ python-all-dev
+# python3-all-dev
Standards-Version: 3.9.6
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/python-freecontact.git
Vcs-Git: git://anonscm.debian.org/debian-med/python-freecontact.git
@@ -24,3 +25,13 @@ Description: fast protein contact predictor - binding for Python
${Description}
.
This package contains the Python binding.
+
+#Package: python3-freecontact
+#Architecture: any
+#Depends: ${misc:Depends},
+# ${python:Depends},
+# ${shlibs:Depends}
+#Description: fast protein contact predictor - binding for Python3
+# ${Description}
+# .
+# This package contains the Python3 binding.
diff --git a/debian/rules b/debian/rules
index a06fcc3..567b163 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,27 +1,28 @@
#!/usr/bin/make -f
#export DH_VERBOSE=1
-export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
-export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
-export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
-export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+export PYBUILD_NAME = freecontact
Description := $(shell sed -e ':a; N; s/\n/$${Newline}/; ta' < debian/Description)
-.PHONY: override_dh_gencontrol
+%:
+ dh $@ --with python2 --buildsystem=pybuild
+### once libboost-python-dev will be provided for Python3
+# dh $@ --with python2,python3 --buildsystem=pybuild
+
override_dh_gencontrol:
dh_gencontrol -- '-VDescription=$(Description)'
-.PHONY: get-orig-source
get-orig-source:
uscan --verbose --force-download --destdir=..
PYVER = $(shell echo -e 'import sys\nprint(str(sys.version_info.major)+"."+str(sys.version_info.minor))' | /usr/bin/python)
PYVERBDIR = $(wildcard ./build/lib.*-2.7)
-.PHONY: override_dh_auto_test
+#override_dh_auto_test:
+# PYTHONPATH=$(PYVERBDIR) ./test/test01.py
override_dh_auto_test:
- PYTHONPATH=$(PYVERBDIR) ./test/test01.py
+ PYBUILD_SYSTEM=custom \
+ PYBUILD_TEST_ARGS="{interpreter} $(CURDIR)/test/test01.py" \
+ dh_auto_test
-%:
- dh $@ --with python2 --buildsystem=python_distutils
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-freecontact.git
More information about the debian-med-commit
mailing list