File: rules

package info (click to toggle)
wxpython4.0 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 211,112 kB
  • sloc: cpp: 888,355; python: 223,130; makefile: 52,087; ansic: 45,780; sh: 3,012; xml: 1,534; perl: 264
file content (49 lines) | stat: -rwxr-xr-x 2,328 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
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f

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

export DOXYGEN=/usr/bin/doxygen
export SIP=/usr/bin/sip
export PYBUILD_SYSTEM=custom
export PYBUILD_BUILD_ARGS_python2=python{version} -u build.py dox touch etg --nodoc sip build_py --use_syswx --gtk3 bdist_egg
export PYBUILD_BUILD_ARGS_python3=python{version} -u build.py dox touch etg --nodoc sip build_py --use_syswx --gtk3
export PYBUILD_CLEAN_ARGS=python{version} build.py clean
export PYBUILD_BEFORE_INSTALL=mkdir -p {destdir}{install_dir}
export PYBUILD_INSTALL_ARGS_python2=python{version} -m easy_install -m -d {destdir}{install_dir} -Z dist/*.egg
export PYBUILD_INSTALL_ARGS_python3=python{version} build.py install_py --destdir={destdir} --extra_setup="--install-layout=deb"
SKIP_TESTS='not (display_Tests or glcanvas_Tests or mousemanager_Tests or numdlg_Tests or uiaction_MouseTests or uiaction_KeyboardTests or unichar_Tests or valtext_Tests or test_frameRestore or test_grid_pi)'
export PYBUILD_BEFORE_TEST=mv wx wx.orig
export PYBUILD_TEST_ARGS=PYTHONPATH=build/lib.$(DEB_HOST_ARCH_OS)-$(DEB_HOST_ARCH)-{version} PYTHONDONTWRITEBYTECODE=1 xvfb-run -a python{version} -m pytest -v --boxed --timeout=60 -k $(SKIP_TESTS) unittests || true
export PYBUILD_AFTER_TEST=mv wx.orig wx
export PYBUILD_DISABLE=configure

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

override_dh_auto_test:

override_dh_auto_install:
	dh_auto_install
	dh_auto_test

override_dh_install:
	dh_install
	# These are packaged in the -media subpackage:
	rm -f debian/python-wxgtk4.0/usr/lib/python*/dist-packages/wxPython*/wx/_media.*so \
	      debian/python-wxgtk4.0/usr/lib/python*/dist-packages/wxPython*/wx/media.py* \
	      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/python-wxgtk4.0/usr/lib/python*/dist-packages/wxPython*/wx/_html2.*so \
	      debian/python-wxgtk4.0/usr/lib/python*/dist-packages/wxPython*/wx/html2.py* \
	      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_python2:
	dh_python2
	dh_sip

override_dh_python3:
	dh_python3
	dh_sip3