File: rules

package info (click to toggle)
jupyterhub 5.2.1%2Bds1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,788 kB
  • sloc: python: 33,831; javascript: 13,807; sh: 118; makefile: 35
file content (23 lines) | stat: -rwxr-xr-x 1,004 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

PYVERS=$(shell py3versions -d)
PYPATH=debian/jupyterhub/usr/lib/$(PYVERS)/dist-packages

export PYBUILD_NAME=jupyterhub

%:
	dh $@ --buildsystem=pybuild

execute_before_dh_auto_build:
	pkgjs-install-minimal
	-cp -fd node_modules/* share/jupyterhub/static/components
	mkdir -p share/jupyterhub/static/css

execute_after_dh_auto_install:
	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
	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

	# generate and install the config file
	PYTHONPATH=$(PYPATH) debian/jupyterhub/usr/bin/jupyterhub --generate-config -f debian/jupyterhub/usr/share/jupyterhub/jupyterhub_config.py

override_dh_auto_test: