Package: python-pint
Version: 0.24.4-1
Severity: minor
X-Debbugs-Cc: [email protected]


Hi

The debian/rules for this package references the `python_distutils` buildsystem from debhelper. Said buildsystem no longer works since it is only for python2.

override_dh_sphinxdoc:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
        PYTHONPATH=. python3 -m sphinx -b html docs 
debian/python-pint-doc/usr/share/doc/python-pint-doc/html
        dh_sphinxdoc -O--buildsystem=python_distutils
        $(RM) -r 
$(CURDIR)/debian/python-pint-doc/usr/share/doc/python-pint-doc/html/_static/__pycache__
        $(RM) -r 
$(CURDIR)/debian/python-pint-doc/usr/share/doc/python-pint-doc/html/_static/vendor
        $(RM) 
$(CURDIR)/debian/python-pint-doc/usr/share/doc/python-pint-doc/html/_static/vendor/fontawesome/5.13.0/LICENSE.txt
        find 
$(CURDIR)/debian/python-pint-doc/usr/share/doc/python-pint-doc/html -type f 
-print0 | xargs --no-run-if-empty -0 sed -i 
's|https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js|file:///usr/share/javascript/requirejs/require.min.js|g'
        find 
$(CURDIR)/debian/python-pint-doc/usr/share/doc/python-pint-doc/html -type f 
-print0 | xargs --no-run-if-empty -0 sed -i 
's|https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js||g'
endif

In the concrete case, it is passed to dh_sphinxdoc via -O. Since `dh_sphinxdoc` is not a build system command (dh_auto_*) and debhelper ignores unknown options passed to `-O` then this is most likely just deadweight and can be removed with no consequence.

Best regards,
Niels

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to