| 1 |
#!/usr/bin/make -f |
| 2 |
# See debhelper(7) (uncomment to enable) |
| 3 |
# output every command that modifies files on the build system. |
| 4 |
#export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
export PYBUILD_NAME=jupyter-server-mathjax |
| 7 |
export PYBUILD_VERBOSE=1 |
| 8 |
|
| 9 |
MATHJAX_BASE = /usr/share/javascript/mathjax |
| 10 |
export JUPYTER_PACKAGING_SKIP_NPM=1 |
| 11 |
|
| 12 |
export PYBUILD_TEST_PYTEST=1 |
| 13 |
export PYBUILD_TEST_ARGS=-v |
| 14 |
# The if test allows this to work at both build time and autopkgtest time |
| 15 |
export PYBUILD_BEFORE_TEST=if [ -d {build_dir}/jupyter_server_mathjax ]; then ln -s $(MATHJAX_BASE) {build_dir}/jupyter_server_mathjax/static; fi |
| 16 |
export PYBUILD_AFTER_TEST=if [ -d {build_dir}/jupyter_server_mathjax ]; then rm {build_dir}/jupyter_server_mathjax/static; fi |
| 17 |
|
| 18 |
%: |
| 19 |
dh $@ --buildsystem=pybuild |
| 20 |
|
| 21 |
execute_after_dh_python3: |
| 22 |
mv debian/python3-jupyter-server-mathjax/usr/etc debian/python3-jupyter-server-mathjax |