| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
DEB_VERSION_MAJOR := $(shell echo $(DEB_VERSION_UPSTREAM) | cut -c 1) |
| 5 |
|
| 6 |
#export DH_VERBOSE=1 |
| 7 |
export LC_ALL=C.UTF-8 |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --buildsystem=pybuild |
| 11 |
|
| 12 |
execute_after_dh_auto_install: |
| 13 |
rm debian/tmp/usr/bin/ipython |
| 14 |
|
| 15 |
execute_before_dh_installman: |
| 16 |
cp docs/man/ipython.1 docs/man/ipython3.1 |
| 17 |
|
| 18 |
override_dh_auto_test: |
| 19 |
@echo "No test to avoid circular dependencies" |
| 20 |
|
| 21 |
override_dh_sphinxdoc: |
| 22 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 23 |
http_proxy=127.0.0.1:9 https_proxy=127.0.0.1:9 PYTHONPATH=. python3 -m sphinx -b html docs/source debian/python-ipython-doc/usr/share/doc/python-ipython-doc/html |
| 24 |
dh_sphinxdoc -O--buildsystem=pybuild |
| 25 |
endif |
| 26 |
|
| 27 |
override_dh_installchangelogs: |
| 28 |
dh_installchangelogs -k docs/source/whatsnew/version$(DEB_VERSION_MAJOR).rst |