File: rules

package info (click to toggle)
cfgrib 0.9.10.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,744 kB
  • sloc: python: 4,712; makefile: 41
file content (25 lines) | stat: -rwxr-xr-x 501 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
#!/usr/bin/make -f

# export DH_VERBOSE=1

export PYBUILD_NAME=cfgrib
PY3VERS:= $(shell py3versions -s)

export PYTHONPATH=$(shell pwd)

# The magic debhelper  rule
%:
	dh $@  --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean
	rm -rf .eggs cfgrib.egg-info


override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	for p in $(PY3VERS); do \
	PY3VERNUM=`echo $$p | sed -e 's/python//' `; \
		pybuild --test --test-pytest -i $$p -p $$PY3VERNUM  ;  \
                done
endif