Package: biosig4c++
Followup-For: Bug #936207
User: [email protected]
Usertags: origin-ubuntu focal ubuntu-patch
Attached is a patch to drop python2 support from biosig4c++. It has been
uploaded to Ubuntu, since the resulting build failure is currently blocking
the octave 5 transition there.
Cheers,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
[email protected] [email protected]
diff -Nru biosig4c++-1.9.3/debian/control biosig4c++-1.9.3/debian/control
--- biosig4c++-1.9.3/debian/control 2019-01-20 13:09:35.000000000 -0800
+++ biosig4c++-1.9.3/debian/control 2019-11-05 11:24:07.000000000 -0800
@@ -8,11 +8,8 @@
dh-python,
d-shlibs,
gawk,
- python-dev,
python3-dev,
swig,
- python-numpy,
- python-pkgconfig,
python3-numpy,
python3-pkgconfig,
zlib1g-dev,
@@ -67,17 +64,6 @@
CWFB. save2gdf can be also used to upload or retrieve data from a
bscs server.
-Package: python-biosig
-Architecture: any
-Section: python
-Depends: ${python:Depends},
- ${shlibs:Depends},
- ${misc:Depends}
-Description: Python bindings for BioSig library
- This package provides Python bindings for BioSig library. Primary
- goal -- I/O interface to variety of biomedical file formats, including
- but not limited to SCP-ECG(EN1064), HL7aECG (FDA-XML), GDF, EDF.
-
Package: python3-biosig
Architecture: any
Section: python
diff -Nru biosig4c++-1.9.3/debian/python-biosig.examples
biosig4c++-1.9.3/debian/python-biosig.examples
--- biosig4c++-1.9.3/debian/python-biosig.examples 2019-01-20
13:09:35.000000000 -0800
+++ biosig4c++-1.9.3/debian/python-biosig.examples 1969-12-31
16:00:00.000000000 -0800
@@ -1,2 +0,0 @@
-python/demo*.py
-python/example.py
diff -Nru biosig4c++-1.9.3/debian/rules biosig4c++-1.9.3/debian/rules
--- biosig4c++-1.9.3/debian/rules 2019-01-20 13:09:35.000000000 -0800
+++ biosig4c++-1.9.3/debian/rules 2019-11-05 11:24:07.000000000 -0800
@@ -11,7 +11,7 @@
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
- dh $@ --with python2,python3
+ dh $@ --with python3
override_dh_auto_configure:
dh_auto_configure
@@ -37,11 +37,8 @@
# Manual crafting of installing Octave and Python bindings
# TODO: proper
-PYTHON=$(shell pyversions -d)
PYTHON3=$(shell py3versions -d)
-PYDIR=$(shell /bin/ls -d /usr/lib/$(PYTHON)/*-packages)
PY3DIR=$(shell if /bin/ls -d /usr/lib/${PYTHON3}/*-packages 2>/dev/null ; then
/bin/ls -d /usr/lib/${PYTHON3}/*-packages ; else /bin/ls -d
/usr/lib/python3/*-packages ; fi)
-PYVER=$(shell pyversions -d -v)
PY3VER=$(shell py3versions -d -v)
OCTDIR=$(shell octave-config -p LOCALOCTFILEDIR)/biosig
@@ -50,8 +47,6 @@
dh_auto_install
: I: install Python binding for current Python verion TODO: all
- mkdir -p debian/python-biosig$(PYDIR)
- cp -a python/build/lib.*-$(PYVER)/biosig.so debian/python-biosig$(PYDIR)
mkdir -p debian/python3-biosig$(PY3DIR)
cp -a python/build/lib.*-$(PY3VER)/biosig.*.so
debian/python3-biosig$(PY3DIR)/biosig.so