[med-svn] [python-treetime] 06/06: Provide example package

Andreas Tille tille at debian.org
Thu Jun 15 12:08:49 UTC 2017


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

tille pushed a commit to branch master
in repository python-treetime.

commit 1f86e4a0826c320d472ada4ca490866ebccaeb10
Author: Andreas Tille <tille at debian.org>
Date:   Thu Jun 15 14:04:27 2017 +0200

    Provide example package
---
 debian/control                                | 9 ++++-----
 debian/{examples => python-treetime.examples} | 0
 debian/python-treetime.install                | 2 +-
 debian/{links => python-treetime.links}       | 0
 debian/{manpages => python-treetime.manpages} | 0
 debian/rules                                  | 6 +++++-
 6 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/debian/control b/debian/control
index 641b215..4e3548f 100644
--- a/debian/control
+++ b/debian/control
@@ -4,12 +4,14 @@ Uploaders: Andreas Tille <tille at debian.org>
 Section: science
 Priority: optional
 Build-Depends: debhelper (>= 10),
-               python-all-dev,
+               dh-python,
+               python-all,
                python-setuptools
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/treetime.git
 Vcs-Git: https://anonscm.debian.org/git/debian-med/treetime.git
 Homepage: https://github.com/neherlab/treetime
+X-Python-Version: >= 2.6
 
 Package: python-treetime
 Architecture: all
@@ -54,10 +56,7 @@ Architecture: all
 Section: python
 Depends: ${python:Depends},
          ${misc:Depends},
-         python-numpy,
-         python-scipy,
-         python-biopython,
-         python-pandas
+         python-treetime
 Description: inference of time stamped phylogenies and ancestral reconstruction (example)
  TreeTime provides routines for ancestral sequence reconstruction and the
  maximum likelihoo inference of molecular-clock phylogenies, i.e., a tree
diff --git a/debian/examples b/debian/python-treetime.examples
similarity index 100%
rename from debian/examples
rename to debian/python-treetime.examples
diff --git a/debian/python-treetime.install b/debian/python-treetime.install
index 089dbca..cb4bc23 100644
--- a/debian/python-treetime.install
+++ b/debian/python-treetime.install
@@ -1,2 +1,2 @@
 *.py	usr/share/treetime
-
+usr/lib	usr
diff --git a/debian/links b/debian/python-treetime.links
similarity index 100%
rename from debian/links
rename to debian/python-treetime.links
diff --git a/debian/manpages b/debian/python-treetime.manpages
similarity index 100%
rename from debian/manpages
rename to debian/python-treetime.manpages
diff --git a/debian/rules b/debian/rules
index 144dfde..4621c51 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,13 +2,17 @@
 
 # DH_VERBOSE := 1
 
+export PYBUILD_NAME = treetime
+
 %:
-	dh $@  --with python2
+	dh $@ --with python2
 
 override_dh_install:
 	dh_install
 	find debian/*/usr/share/treetime -name __init__.py -delete
 	find debian/*/usr/share/treetime -name setup.py -delete
+	## enable dh_python finding dependency
+	##find debian/*/usr/share/treetime -name "*.py" -exec sed -i 's:#!/usr/bin/env python:#!/usr/bin/python:' \{\} \;
 	find debian/*/usr/lib/*/dist-packages/treetime -name "*.py" -exec sed -i 's:/usr/local/bin/python:/usr/bin/python:' \{\} \;
 
 get-orig-source:

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



More information about the debian-med-commit mailing list