File: rules

package info (click to toggle)
pysal 1.13.0-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 97,868 kB
  • ctags: 4,970
  • sloc: python: 50,618; xml: 547; makefile: 116; sh: 73
file content (28 lines) | stat: -rwxr-xr-x 679 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
#!/usr/bin/make -f
# -*- makefile -*-

DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)

export PYBUILD_NAME=pysal
export PYBUILD_TEST_NOSE=1
export PYBUILD_TEST_ARGS=--exclude test_DistanceBand_arc  --exclude-dir=pysal/contrib --exclude-dir pysal/network

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

override_dh_auto_test:
# Ignore test failures on problematic architectures only
ifneq (,$(findstring $(DEB_BUILD_ARCH),"i386"))
	dh_auto_test || echo "Ignoring test failures"
else
	dh_auto_test
endif

override_dh_python2:
	dh_python2 -ppython-pysal
	dh_numpy -ppython-pysal

override_dh_python3:
	dh_python3 -ppython3-pysal
	dh_numpy3 -ppython3-pysal