| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
export PYBUILD_NAME=lmfit |
| 8 |
|
| 9 |
export PYBUILD_BEFORE_TEST=cp -r NIST_STRD examples {build_dir} |
| 10 |
export PYBUILD_AFTER_TEST=rm -fr {build_dir}/NIST_STRD {build_dir}/examples; find {build_dir} -name "*.sav" -delete |
| 11 |
|
| 12 |
export MPLCONFIGDIR=/var/tmp |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ --buildsystem=pybuild |
| 16 |
|
| 17 |
override_dh_clean: |
| 18 |
find . -name "*.pickle" -delete |
| 19 |
rm -rf doc/examples |
| 20 |
dh_clean |
| 21 |
|
| 22 |
override_dh_installdocs-indep: |
| 23 |
mv examples/example_emcee_Model_interface.py examples/nodoc_example_emcee_Model_interface.py |
| 24 |
cp doc/sphinx/ext_mathjax.py doc/extensions.py |
| 25 |
PYTHONPATH=. http_proxy='localhost' python3 -m sphinx -N -bhtml -D mathjax_path="/usr/share/javascript/mathjax/MathJax.js" doc/ .pybuild/html # HTML generator |
| 26 |
rm doc/extensions.py |
| 27 |
mv examples/nodoc_example_emcee_Model_interface.py examples/example_emcee_Model_interface.py |
| 28 |
dh_installdocs -i |
| 29 |
dh_installdocs .pybuild/html -p python-lmfit-doc --doc-main-package=python3-lmfit |
| 30 |
|
| 31 |
execute_before_dh_python3: |
| 32 |
rm -rf debian/python3-lmfit/usr/lib/python3*/dist-packages/htmlcov debian/python3-lmfit/usr/lib/python3*/dist-packages/.coverage |