[med-svn] [ngs-sdk] 01/01: Add Python bindinga
Andreas Tille
tille at debian.org
Tue Dec 29 21:24:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository ngs-sdk.
commit 1409866df450a1101d8c36702a304fd647cd123e
Author: Andreas Tille <tille at debian.org>
Date: Tue Dec 29 22:24:31 2015 +0100
Add Python bindinga
---
debian/control | 46 +++++++++++++++++++++++++++++++++++++++++++++-
debian/copyright | 2 +-
debian/rules | 17 ++++++++++++++++-
3 files changed, 62 insertions(+), 3 deletions(-)
diff --git a/debian/control b/debian/control
index d65c1cc..576f241 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,10 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.
Uploaders: Andreas Tille <tille at debian.org>
Build-Depends: debhelper (>= 9),
d-shlibs,
- python-markdown
+ python-markdown,
+ python-all-dev,
+ python3-all-dev,
+ dh-python
Standards-Version: 3.9.6
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/ngs-sdk.git
Vcs-Git: git://anonscm.debian.org/debian-med/ngs-sdk.git
@@ -49,3 +52,44 @@ Description: Next Generation Sequencing language Bindings (development)
.
This is the development package.
+Package: python-ngs-sdk
+Section: python
+Architecture: any
+Depends: ${python:Depends},
+ ${misc:Depends},
+ libngs-sdk1 (= ${binary:Version})
+Description: Next Generation Sequencing language Bindings (Python bindings)
+ NGS is a new, domain-specific API for accessing reads, alignments and
+ pileups produced from Next Generation Sequencing. The API itself is
+ independent from any particular back-end implementation, and supports
+ use of multiple back-ends simultaneously. It also provides a library for
+ building new back-end "engines". The engine for accessing SRA data is
+ contained within the sister repository ncbi-vdb.
+ .
+ The API is currently expressed in C++, Java and Python languages. The
+ design makes it possible to maintain a high degree of similarity between
+ the code in one language and code in another - especially between C++
+ and Java.
+ .
+ Python bindings.
+
+Package: python3-ngs-sdk
+Section: python3
+Architecture: any
+Depends: ${python3:Depends},
+ ${misc:Depends},
+ libngs-sdk1 (= ${binary:Version})
+Description: Next Generation Sequencing language Bindings (Python3 bindings)
+ NGS is a new, domain-specific API for accessing reads, alignments and
+ pileups produced from Next Generation Sequencing. The API itself is
+ independent from any particular back-end implementation, and supports
+ use of multiple back-ends simultaneously. It also provides a library for
+ building new back-end "engines". The engine for accessing SRA data is
+ contained within the sister repository ncbi-vdb.
+ .
+ The API is currently expressed in C++, Java and Python languages. The
+ design makes it possible to maintain a high degree of similarity between
+ the code in one language and code in another - especially between C++
+ and Java.
+ .
+ Python3 bindings.
diff --git a/debian/copyright b/debian/copyright
index ba9a9e8..97364c8 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -28,5 +28,5 @@ License: public_domain
Files: debian/*
Copyright: © 2015 Andreas Tille <tille at debian.org>
License: GPL-3+
- The complete text of the GNU Public License can be found at
+ The complete text of the GNU General Public License can be found at
/usr/share/common-licenses/GPL-3.
diff --git a/debian/rules b/debian/rules
index 0190d16..8d979f3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,6 +21,9 @@ CPU := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
BUILDTYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
SODIR := $(DEBPKGNAME)/$(BUILDTYPE)/$(DEBPKGNAME)/$(OS)/gcc/$(CPU)
+build2vers := $(shell pyversions -sv)
+build3vers := $(shell py3versions -sv)
+
%:
dh $@
@@ -53,4 +56,16 @@ override_dh_auto_install:
--movedev "$(SODIR)/rel/ilib/*.a" usr/lib/$(BUILDTYPE) \
$(SODIR)/rel/lib/libngs-sdk.so
-
+override_dh_install:
+ dh_install -ppython3-ngs-sdk
+ set -e && for i in $(build3vers); do \
+ cd ngs-python ; \
+ python$$i ./setup.py install --install-layout=deb --root ../debian/python3-ngs-sdk; \
+ cd .. ; \
+ done
+ dh_install -ppython-ngs-sdk
+ set -e && for i in $(build2vers); do \
+ cd ngs-python ; \
+ python$$i ./setup.py install --install-layout=deb --root ../debian/python-ngs-sdk; \
+ cd .. ; \
+ done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/ngs-sdk.git
More information about the debian-med-commit
mailing list