#!/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 (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_TEST_ARGS=xvfb-run -a python{version} -m pytest -v --boxed --timeout=60 -k $(SKIP_TESTS) unittests || true export PYBUILD_DISABLE=configure %: dh $@ --with python3 --buildsystem=pybuild override_dh_auto_build: # Generate sip module code to replace bundled version rm -rf sip/siplib sip-module --abi-version 12.8 --sdist wx.siplib tar -xf wx_siplib-12.8.1.tar.gz mv wx_siplib-12.8.1 sip/siplib rm wx_siplib-12.8.1.tar.gz touch sip/siplib/LICENSE dh_auto_build 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