File: rules

package info (click to toggle)
python-qtpy 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 812 kB
  • sloc: python: 3,208; sh: 11; makefile: 9
file content (17 lines) | stat: -rwxr-xr-x 574 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE = 1

export PYBUILD_NAME = qtpy
export PYBUILD_BEFORE_TEST = cp -a {dir}/qtpy/tests/*.ui {build_dir}/qtpy/tests/
export PYBUILD_AFTER_INSTALL = rm -f {destdir}/{install_dir}/.coverage

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

# skip webengine test on arches not supported by QtWebEngine
QTWEBENGINE_SUPPORTED_ARCH_LIST = amd64 arm64 armhf i386 mips64el mipsel
ifeq (,$(filter $(DEB_HOST_ARCH), $(QTWEBENGINE_SUPPORTED_ARCH_LIST)))
	export PYBUILD_TEST_ARGS = "-k 'not webengine'"
endif