File: rules

package info (click to toggle)
nbformat 4.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 744 kB
  • ctags: 762
  • sloc: python: 3,901; makefile: 167
file content (20 lines) | stat: -rwxr-xr-x 626 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

#export DH_VERBOSE=1
# TODO: see if we can rm this work around after
# https://github.com/jupyter/nbformat/issues/76 is fixed
# Generally, it's an upstream bug if we need to set this for the whole build.
export LC_ALL=C.UTF-8

%:
	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install
	rm -r `find debian/tmp -name tests -type d`

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. sphinx-build -b html docs debian/python-nbformat-doc/usr/share/doc/python-nbformat-doc/html
	dh_sphinxdoc -O--buildsystem=pybuild
endif