Skip to content
Commits on Source (2)
macsyfinder (1.0.5-4) UNRELEASED; urgency=medium
* Attempt to use 2to3 to port to Python3 failed
not yet closed: #936977
See also https://github.com/gem-pasteur/macsyfinder/issues/21
-- Andreas Tille <tille@debian.org> Fri, 06 Sep 2019 10:40:05 +0200
macsyfinder (1.0.5-3) unstable; urgency=medium
* Team upload.
......
......@@ -5,7 +5,7 @@ Section: science
Priority: optional
Build-Depends: debhelper-compat (= 12),
dh-python,
python,
python3,
python3-sphinx,
texlive-latex-recommended,
texlive-plain-generic,
......@@ -21,7 +21,7 @@ Homepage: https://github.com/gem-pasteur/macsyfinder
Package: macsyfinder
Architecture: all
Depends: ${python:Depends},
Depends: ${python3:Depends},
${misc:Depends},
hmmer,
ncbi-blast+,
......
This diff is collapsed.
skip_tests.patch
# 2to3.patch # deactivate - its more complex than this
......@@ -4,21 +4,21 @@
#export DH_VERBOSE=1
%:
dh $@ --with python2 --buildsystem=pybuild
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_install:
cd doc && make html
cd doc && make latexpdf
ln -sf $(shell pybuild --print build_dir --interpreter python) build/lib.$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)-$(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)-$(shell pyversions -vs)
python setup.py install --prefix=debian/macsyfinder/usr/ --install-conf=debian/macsyfinder/etc/ --no-viewer
ln -sf $(shell pybuild --print build_dir --interpreter python3) build/lib.$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)-$(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)-$(shell py3versions -vs)
python3 setup.py install --prefix=debian/macsyfinder/usr/ --install-conf=debian/macsyfinder/etc/ --no-viewer
# The better solution would be to use
# dh_auto_install -- --prefix=/usr --install-conf=/etc --no-viewer
# and fiy setup.py to use --root as install location (which is ignored unfortunately)
# Since I have no idea how to fix setup.py here the broken config files are hacked afterwards
for conffile in \
etc/macsyfinder/macsyfinder.conf.new \
usr/lib/python2.7/site-packages/macsypy/config.py \
usr/lib/python2.7/site-packages/macsypy/registries.py \
usr/lib/python3*/site-packages/macsypy/config.py \
usr/lib/python3*/site-packages/macsypy/registries.py \
; do \
sed -i 's:debian/macsyfinder::g' debian/macsyfinder/$${conffile} ; \
done
......