File: rules

package info (click to toggle)
python-qtconsole 4.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,016 kB
  • ctags: 840
  • sloc: python: 5,896; makefile: 186
file content (35 lines) | stat: -rwxr-xr-x 903 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f

export PYBUILD_NAME=qtconsole
export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/bin/

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

override_dh_clean:
	dh_clean
	rm -rf docs/build

override_dh_auto_install:
	dh_auto_install

	# install scripts into jupyter-qtconsole
	python3 setup.py install_scripts -d debian/jupyter-qtconsole/usr/bin

override_dh_install:
	dh_install

	## install the .desktop files
	dh_install -p jupyter-qtconsole \
                   examples/jupyter-qtconsole.desktop \
		   usr/share/applications

override_dh_installman:
	dh_installman -p jupyter-qtconsole debian/jupyter-qtconsole.1

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	cd docs && PYTHONPATH=$(CURDIR) $(MAKE) html
	dh_install -p python-qtconsole-doc docs/build/html usr/share/doc/python-qtconsole-doc/
	dh_sphinxdoc -O--buildsystem=pybuild
endif