debian: Distribute the html version of the ipython notebooks
* configure.ac: Check for ipython. * wrap/python/tests/Makefile.am (nb-html): New rule, using ipython. * debian/control: Depend on ipython. * debian/rules: Run nb-html. * debian/python3-spot.examples: Install the genrated html files.
This commit is contained in:
parent
fb8a16ffcc
commit
86e16af97c
5 changed files with 11 additions and 1 deletions
|
|
@ -161,6 +161,7 @@ AC_CHECK_PROG([PERL], [perl], [perl])
|
||||||
AC_CHECK_PROG([SPIN], [spin], [spin])
|
AC_CHECK_PROG([SPIN], [spin], [spin])
|
||||||
AC_CHECK_PROG([LBTT], [lbtt], [lbtt])
|
AC_CHECK_PROG([LBTT], [lbtt], [lbtt])
|
||||||
AC_CHECK_PROG([EMACS], [emacs], [emacs])
|
AC_CHECK_PROG([EMACS], [emacs], [emacs])
|
||||||
|
AC_CHECK_PROG([IPYTHON], [ipython3], [ipython])
|
||||||
AC_CHECK_PROG([LBTT_TRANSLATE], [lbtt-translate], [lbtt-translate])
|
AC_CHECK_PROG([LBTT_TRANSLATE], [lbtt-translate], [lbtt-translate])
|
||||||
AX_CHECK_VALGRIND
|
AX_CHECK_VALGRIND
|
||||||
AC_CHECK_PROG([WRING2LBTT], [wring2lbtt], [wring2lbtt])
|
AC_CHECK_PROG([WRING2LBTT], [wring2lbtt], [wring2lbtt])
|
||||||
|
|
|
||||||
2
debian/control
vendored
2
debian/control
vendored
|
|
@ -2,7 +2,7 @@ Source: spot
|
||||||
Section: science
|
Section: science
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
Maintainer: Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
Build-Depends: debhelper (>= 9), python3-all-dev
|
Build-Depends: debhelper (>= 9), python3-all-dev, ipython3-notebook
|
||||||
Standards-Version: 3.9.6
|
Standards-Version: 3.9.6
|
||||||
Homepage: http://spot.lrde.lip6.fr/
|
Homepage: http://spot.lrde.lip6.fr/
|
||||||
|
|
||||||
|
|
|
||||||
1
debian/python3-spot.examples
vendored
1
debian/python3-spot.examples
vendored
|
|
@ -1 +1,2 @@
|
||||||
wrap/python/tests/*.ipynb
|
wrap/python/tests/*.ipynb
|
||||||
|
wrap/python/tests/*.html
|
||||||
|
|
|
||||||
1
debian/rules
vendored
1
debian/rules
vendored
|
|
@ -73,6 +73,7 @@ override_dh_python3:
|
||||||
dh_python3 -p python3-spot
|
dh_python3 -p python3-spot
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
dh_auto_build
|
dh_auto_build
|
||||||
|
$(MAKE) -C wrap/python/tests nb-html
|
||||||
|
|
||||||
fix-mathjax:
|
fix-mathjax:
|
||||||
perl -pi -e 's|http://orgmode.org/mathjax/MathJax.js|file:///usr/share/javascript/mathjax/MathJax.js|' doc/userdoc/*.html
|
perl -pi -e 's|http://orgmode.org/mathjax/MathJax.js|file:///usr/share/javascript/mathjax/MathJax.js|' doc/userdoc/*.html
|
||||||
|
|
|
||||||
|
|
@ -52,3 +52,10 @@ TESTS = \
|
||||||
relabel.py \
|
relabel.py \
|
||||||
setxor.py \
|
setxor.py \
|
||||||
testingaut.ipynb
|
testingaut.ipynb
|
||||||
|
|
||||||
|
SUFFIXES = .ipynb .html
|
||||||
|
.ipynb.html:
|
||||||
|
$(IPYTHON) nbconvert $< --to html
|
||||||
|
|
||||||
|
.PHONY: nb-html
|
||||||
|
nb-html: $(TESTS:.ipynb=.html)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue