Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #11398

Re: Packaging python-xrayutilities

From Dmitry Shachnev <mitya57@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Packaging python-xrayutilities
Date 2019-03-21 12:40 +0100
Message-ID <xE4db-1uC-3@gated-at.bofh.it> (permalink)
References (2 earlier) <xD2n7-39O-9@gated-at.bofh.it> <xD2n7-39O-7@gated-at.bofh.it> <xD2Gt-3gl-1@gated-at.bofh.it> <xDmFb-7NM-19@gated-at.bofh.it> <xE2O5-Ly-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Marie!

On Thu, Mar 21, 2019 at 10:09:22AM +0000, MARIE Alexandre wrote:
> Hello,
>
> I'm still working on the package python-xrayutilities for debian.
>
> I've come to a point where the package can be built but when generating the doc,
> lintian comes with a bunch of privacy-generic-breach tags like this :
>
> W: python-xrayutilities-doc: privacy-breach-generic [...]
> (https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=tex-ams-mml_htmlormml)
>
> I have tried to add in debian/rules this :
> override_dh_installdocs:
>         ln -s /usr/share/javascript/mathjax/MathJax.js $(CURDIR)/doc/build/html/_static/MathJax.js
>         find doc/build/html -name "*.html" -exec sed -i "s|https://cdn.mathjax.org/mathjax/latest/MathJax.js|_static/MathJax.js|" {} \;
>         dh_installdocs -ppython-xrayutilities-doc doc/build/html
>
> But it does not seem to work.

Don’t do anything in debian/rules. Instead, patch your conf.py to
have a line like this:

  mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'

This way the files produced by Sphinx will have the right path, and there
won’t be any need for making symlinks.

--
Dmitry Shachnev
(maintainer of both sphinx and mathjax packages)

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Packaging python-xrayutilities MARIE Alexandre <alexandre.marie@synchrotron-soleil.fr> - 2019-03-18 10:40 +0100
  Re: Packaging python-xrayutilities Florian Pelgrim <fp@craneworks.de> - 2019-03-18 11:10 +0100
    RE:Packaging python-xrayutilities MARIE Alexandre <alexandre.marie@synchrotron-soleil.fr> - 2019-03-18 16:30 +0100
      Re: Packaging python-xrayutilities Andrey Rahmatullin <wrar@debian.org> - 2019-03-18 16:30 +0100
        RE:Packaging python-xrayutilities MARIE Alexandre <alexandre.marie@synchrotron-soleil.fr> - 2019-03-18 16:50 +0100
          RE:Packaging python-xrayutilities MARIE Alexandre <alexandre.marie@synchrotron-soleil.fr> - 2019-03-19 14:10 +0100
            RE:Packaging python-xrayutilities MARIE Alexandre <alexandre.marie@synchrotron-soleil.fr> - 2019-03-21 11:10 +0100
              Re: Packaging python-xrayutilities Andrey Rahmatullin <wrar@debian.org> - 2019-03-21 11:30 +0100
                Re: Packaging python-xrayutilities Andreas Tille <andreas@an3as.eu> - 2019-03-21 11:50 +0100
                RE:Packaging python-xrayutilities MARIE Alexandre <alexandre.marie@synchrotron-soleil.fr> - 2019-03-21 12:00 +0100
                RE:Packaging python-xrayutilities MARIE Alexandre <alexandre.marie@synchrotron-soleil.fr> - 2019-03-21 11:50 +0100
                Re: Packaging python-xrayutilities Alex Mestiashvili <amestia@rsh2.donotuse.de> - 2019-03-21 12:10 +0100
                RE:Packaging python-xrayutilities MARIE Alexandre <alexandre.marie@synchrotron-soleil.fr> - 2019-03-21 12:20 +0100
              Re: Packaging python-xrayutilities Dmitry Shachnev <mitya57@debian.org> - 2019-03-21 12:40 +0100
                Re: Packaging python-xrayutilities Dmitry Shachnev <mitya57@debian.org> - 2019-03-21 12:50 +0100

csiph-web