File: rules

package info (click to toggle)
ipython 5.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,428 kB
  • ctags: 4,941
  • sloc: python: 33,657; makefile: 170; sh: 139
file content (29 lines) | stat: -rwxr-xr-x 900 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
#!/usr/bin/make -f

#export DH_VERBOSE=1
export PYBUILD_NAME=ipython
export LC_ALL=C.UTF-8

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

override_dh_auto_install:
	dh_auto_install

	rm -r `find debian/python-ipython -name tests -type d`
	rm -r debian/python-ipython/usr/bin debian/python-ipython/usr/share/man
	rm -r `find debian/python3-ipython -name tests -type d`
	rm -r debian/python3-ipython/usr/bin debian/python3-ipython/usr/share/man

override_dh_auto_test:
	@echo "No test to avoid circular dependencies"

override_dh_installman:
	dh_installman
	mv debian/ipython3/usr/share/man/man1/ipython.1 debian/ipython3/usr/share/man/man1/ipython3.1

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