File: rules

package info (click to toggle)
ipyparallel 9.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 9,388 kB
  • sloc: python: 22,769; javascript: 267; makefile: 29; sh: 28
file content (21 lines) | stat: -rwxr-xr-x 819 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
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME=ipyparallel
export PYBUILD_TEST_ARGS=-W ignore::RuntimeWarning -W ignore::DeprecationWarning
export PYBUILD_AFTER_INSTALL=mkdir -p {destdir}/etc && mv {destdir}/usr/etc/jupyter {destdir}/etc/jupyter && rm {destdir}/usr/etc -rf && rm {destdir}/usr/etc/jupyter/jupyter -rf

%:
ifeq (,$(filter nodoc,${DEB_BUILD_OPTIONS} ${DEB_BUILD_PROFILES}))
	dh $@ --buildsystem=pybuild --with sphinxdoc
else
	dh $@ --buildsystem=pybuild
endif

override_dh_auto_build:
	IPP_DISABLE_JS=1 dh_auto_build
ifeq (,$(filter nodoc,${DEB_BUILD_OPTIONS} ${DEB_BUILD_PROFILES}))
	PYTHONPATH=$(CURDIR) http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/source build/html
endif