| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
PYVERS=$(shell py3versions -d) |
| 4 |
PYPATH=debian/jupyterhub/usr/lib/$(PYVERS)/dist-packages |
| 5 |
|
| 6 |
export PYBUILD_NAME=jupyterhub |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --buildsystem=pybuild |
| 10 |
|
| 11 |
execute_before_dh_auto_build: |
| 12 |
pkgjs-install-minimal |
| 13 |
-cp -fd node_modules/* share/jupyterhub/static/components |
| 14 |
mkdir -p share/jupyterhub/static/css |
| 15 |
|
| 16 |
execute_after_dh_auto_install: |
| 17 |
PYTHONPATH=$(PYPATH) help2man --output=jupyterhub.1 --name="Multi-user server for Jupyter notebooks" --version-string=$$(dpkg-parsechangelog -S Version | sed s/-[^-]*$$//) debian/jupyterhub/usr/bin/jupyterhub |
| 18 |
PYTHONPATH=$(PYPATH) help2man --output=jupyterhub-singleuser.1 --name="Single-user server for Jupyter notebooks" --version-string=$$(dpkg-parsechangelog -S Version | sed s/-[^-]*$$//) debian/jupyterhub/usr/bin/jupyterhub-singleuser |
| 19 |
|
| 20 |
# generate and install the config file |
| 21 |
PYTHONPATH=$(PYPATH) debian/jupyterhub/usr/bin/jupyterhub --generate-config -f debian/jupyterhub/usr/share/jupyterhub/jupyterhub_config.py |
| 22 |
|
| 23 |
override_dh_auto_test: |