File: rules

package info (click to toggle)
pyvisa-py 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 604 kB
  • sloc: python: 4,833; makefile: 140; sh: 4
file content (35 lines) | stat: -rwxr-xr-x 941 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
#DH_VERBOSE = 1

PYVISA_VERSION = $(shell dpkg -s python3-pyvisa | grep Version: | cut -c 10-)

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

override_dh_auto_clean:
	$(RM) -r PyVISA_py.egg-info
	$(RM) -r build
	dh_auto_clean

#override_dh_auto_build:
#	dh_auto_build
#	set -ex; for python in $(shell py3versions -r); do \
#	    $$python setup.py build; \
#	done

#override_dh_auto_install:
#	dh_auto_install
#	set -ex; for python in $(shell py3versions -r); do \
#	    $$python setup.py install --install-layout=deb \
#	    --root $(CURDIR)/debian/tmp; \
#	done;

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	if dpkg --compare-versions $(PYVISA_VERSION) lt 1.11.3-1 ; then \
	  echo "Skipping test since pyvisa version is older than 1.11.3-1" ; \
	  echo "This is needed to solve a cyclic dependency problem causing problems with migration to testing" ; \
	else \
	  dh_auto_test; \
	fi
endif