File: rules

package info (click to toggle)
python-pyproj 1.9.6-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,520 kB
  • sloc: ansic: 23,653; python: 1,089; makefile: 31; sh: 19
file content (47 lines) | stat: -rwxr-xr-x 1,150 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
#!/usr/bin/make -f
# -*- makefile -*-

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

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export PYBUILD_NAME=pyproj

# Path to system installed Proj.4 data.
export PROJ_DIR=/usr/

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

override_dh_clean:
	dh_clean lib/pyproj/data/FL lib/pyproj/data/MD \
	         lib/pyproj/data/TN lib/pyproj/data/WI \
	         lib/pyproj/data/WO \
	         lib/pyproj/data/alaska lib/pyproj/data/conus \
	         lib/pyproj/data/hawaii lib/pyproj/data/null \
	         lib/pyproj/data/prvi lib/pyproj/data/stgeorge \
	         lib/pyproj/data/stlrnc lib/pyproj/data/stpaul \
	         nad2bin nad2bin.o \
	         src/pj_malloc.o \
	         _proj.c

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="PYTHONPATH={build_dir} {interpreter} /usr/bin/nose2 -v" \
	dh_auto_test
endif

override_dh_install:
	dh_install --list-missing

override_dh_python2:
	dh_python2 -ppython-pyproj

override_dh_python3:
	dh_python3 -ppython3-pyproj