Skip to content
Commits on Source (2)
libedlib (1.2.3-4) UNRELEASED; urgency=medium
* Make sure the executable is found in test
* Add Python3 bindings
-- Andreas Tille <tille@debian.org> Sun, 21 Oct 2018 08:05:00 +0200
-- Andreas Tille <tille@debian.org> Tue, 11 Dec 2018 09:52:41 +0100
libedlib (1.2.3-3) unstable; urgency=medium
......
......@@ -5,8 +5,12 @@ Section: science
Priority: optional
Build-Depends: debhelper (>= 11~),
cmake,
dh-python,
d-shlibs,
rename
rename,
cython3,
python3-dev,
python3-setuptools
Standards-Version: 4.2.1
Vcs-Browser: https://salsa.debian.org/med-team/libedlib
Vcs-Git: https://salsa.debian.org/med-team/libedlib.git
......@@ -103,3 +107,36 @@ Description: edlib sequence alignment tool using edit distance
* It can easily handle small or very large sequences, even when finding
alignment path, while consuming very little memory.
* Super fast thanks to Myers's bit-vector algorithm.
Package: python3-edlib
Architecture: any
Section: python
Depends: ${misc:Depends},
${shlibs:Depends},
${python3:Depends}
Description: library for sequence alignment using edit distance (Python3 module)
A lightweight and super fast C/C++ library for sequence alignment using
edit distance.
.
Calculating edit distance of two strings is as simple as:
.
edlibAlign("hello", 5, "world!", 6,
edlibDefaultAlignConfig()).editDistance;
Features
.
* Calculates edit distance (Levehnstein distance).
* It can find optimal alignment path (instructions how to transform
first sequence into the second sequence).
* It can find just the start and/or end locations of alignment path -
can be useful when speed is more important than having exact
alignment path.
* Supports multiple alignment methods: global(NW), prefix(SHW) and
infix(HW), each of them useful for different scenarios.
* You can extend character equality definition, enabling you to e.g.
have wildcard characters, to have case insensitive alignment or to
work with degenerate nucleotides.
* It can easily handle small or very large sequences, even when finding
alignment path, while consuming very little memory.
* Super fast thanks to Myers's bit-vector algorithm.
.
This package contains the Python3 module.
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 11 Dec 2018 09:52:41 +0100
Description: Use Cython3/Python3
--- a/bindings/python/Makefile
+++ b/bindings/python/Makefile
@@ -7,15 +7,15 @@ edlib: ../../edlib
cp -R ../../edlib .
pyedlib.bycython.cpp: edlib.pyx cedlib.pxd
- cython --cplus edlib.pyx -o edlib.bycython.cpp
+ cython3 --cplus edlib.pyx -o edlib.bycython.cpp
#######################################
############## COMMANDS ###############
build: ${FILES}
- python setup.py build_ext -i
+ python3 setup.py build_ext -i
sdist: ${FILES}
- python setup.py sdist
+ python3 setup.py sdist
publish: clean sdist
twine upload dist/*
soversion.patch
do_not_build_hello_example.patch
cython3.patch
......@@ -2,15 +2,27 @@
# DH_VERBOSE := 1
export PYBUILD_NAME = edlib
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DEB_CMAKE_EXTRA_FLAGS = -DCMAKE_BUILD_TYPE=Release
%:
dh $@
dh $@ --buildsystem=pybuild
override_dh_auto_configure:
dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS)
dh_auto_configure --buildsystem=cmake -- $(DEB_CMAKE_EXTRA_FLAGS)
override_dh_auto_build:
dh_auto_build --buildsystem=cmake
# $(MAKE) --directory=bindings/python
dh_auto_build -O--buildsystem=pybuild -O--source-directory=bindings/python
override_dh_auto_install:
dh_auto_install --buildsystem=cmake
# $(MAKE) install --directory=bindings/python
dh_auto_install --buildsystem=pybuild -O--source-directory=bindings/python
override_dh_install:
dh_install
......