Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Use 2to3 to port to Python3
· a26a252e
Andreas Tille
authored
Sep 06, 2019
a26a252e
Attempt to use 2to3 to port to Python3 failed
· 994f55a1
Andreas Tille
authored
Sep 06, 2019
994f55a1
Expand all
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
994f55a1
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.
...
...
debian/control
View file @
994f55a1
...
...
@@ -5,7 +5,7 @@ Section: science
Priority: optional
Build-Depends: debhelper-compat (= 12),
dh-python,
python,
python
3
,
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: ${python
3
:Depends},
${misc:Depends},
hmmer,
ncbi-blast+,
...
...
debian/patches/2to3.patch
0 → 100644
View file @
994f55a1
This diff is collapsed.
Click to expand it.
debian/patches/series
View file @
994f55a1
skip_tests.patch
# 2to3.patch # deactivate - its more complex than this
debian/rules
View file @
994f55a1
...
...
@@ -4,21 +4,21 @@
#export DH_VERBOSE=1
%:
dh $@ --with python
2
--buildsystem=pybuild
dh $@ --with python
3
--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 python
3
) build/lib.$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)-$(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)-$(shell py
3
versions -vs)
python
3
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/python
2.7
/site-packages/macsypy/config.py \
usr/lib/python
2.7
/site-packages/macsypy/registries.py \
usr/lib/python
3*
/site-packages/macsypy/config.py \
usr/lib/python
3*
/site-packages/macsypy/registries.py \
; do \
sed -i 's:debian/macsyfinder::g' debian/macsyfinder/$${conffile} ; \
done
...
...