File: rules

package info (click to toggle)
pplpy 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 532 kB
  • sloc: python: 306; makefile: 39; cpp: 21; sh: 2
file content (37 lines) | stat: -rwxr-xr-x 1,619 bytes parent folder | download
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
36
37
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow
export PYBUILD_NAME = ppl

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

override_dh_auto_build: export http_proxy=127.0.0.1:9
override_dh_auto_build: export https_proxy=127.0.0.1:9
override_dh_auto_build:
	dh_auto_build
	cd docs && export PYTHONPATH=$(CURDIR)/.pybuild/cpython3_$(shell py3versions -dv)_ppl/build && $(MAKE) html

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
override_dh_auto_test:
	export PYTHONPATH=$(CURDIR)/.pybuild/cpython3_$(shell py3versions -dv)_ppl/build && python3 tests/runtests.py
	export PYTHONPATH=$(CURDIR)/.pybuild/cpython3_$(shell py3versions -dv)_ppl/build && cd tests && python3 setup.py build_ext --inplace
	export PYTHONPATH=$(CURDIR)/.pybuild/cpython3_$(shell py3versions -dv)_ppl/build && cd tests && python3 setup2.py build_ext --inplace
	export PYTHONPATH=$(CURDIR)/.pybuild/cpython3_$(shell py3versions -dv)_ppl/build && cd tests && python3 -c "import testpplpy; testpplpy.test(); testpplpy.example(); import testpplpy2; testpplpy2.test(); testpplpy2.example()"
else
override_dh_auto_test:
	@echo '*********************************************************'
	@echo '               Skip test suite                           '
	@echo '*********************************************************'
endif

override_dh_auto_clean:
	rm -f ppl/*.cpp ppl/*.so
	rm -rf docs/build
	rm -f tests/*.cpp tests/*.so
	rm -rf tests/build
	dh_auto_clean

override_dh_installdocs:
	dh_installdocs --doc-main-package python3-ppl -ppython-ppl-doc
	dh_installdocs -ppython3-ppl debian/copyright