File: rules

package info (click to toggle)
wxpython4.0 4.2.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 216,412 kB
  • sloc: cpp: 962,043; python: 233,251; ansic: 150,542; makefile: 51,664; sh: 8,683; perl: 1,563; javascript: 584; php: 326; xml: 200
file content (29 lines) | stat: -rwxr-xr-x 1,301 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk

export DOXYGEN=/usr/bin/doxygen
export PYBUILD_SYSTEM=custom
export PYBUILD_BUILD_ARGS_python3=python{version} -u build.py dox touch etg --nodoc sip build_py --use_syswx --gtk3 --extra_waf "-v"
export PYBUILD_CLEAN_ARGS=python{version} build.py clean
export PYBUILD_BEFORE_INSTALL=mkdir -p {destdir}{install_dir}
export PYBUILD_INSTALL_ARGS_python3=python{version} build.py install_py --destdir={destdir} --extra_setup="--install-layout=deb"
SKIP_TESTS='not (test_frameRestore or test_newIdRef03)'
export PYBUILD_TEST_ARGS=xvfb-run -a python{version} -m pytest -v --forked --timeout=60 -k $(SKIP_TESTS) unittests || true
export PYBUILD_DISABLE=configure

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

override_dh_install:
	dh_install
	# These are packaged in the -media subpackage:
	rm -f debian/python3-wxgtk4.0/usr/lib/python*/dist-packages/wx/_media.*so \
	      debian/python3-wxgtk4.0/usr/lib/python*/dist-packages/wx/media.py*
	# These are packaged in the -webview subpackage:
	rm -f debian/python3-wxgtk4.0/usr/lib/python*/dist-packages/wx/_html2.*so \
	      debian/python3-wxgtk4.0/usr/lib/python*/dist-packages/wx/html2.py*

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3