File: rules

package info (click to toggle)
healpy 1.18.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,296 kB
  • sloc: ansic: 113,574; cpp: 15,827; python: 9,555; sh: 8,688; yacc: 5,413; fortran: 2,613; lex: 553; makefile: 380
file content (33 lines) | stat: -rwxr-xr-x 886 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
#!/usr/bin/make -f

export PYBUILD_NAME=healpy
export PYBUILD_TEST_ARGS=--doctest-modules
ifeq (i386,$(DEB_HOST_ARCH))
export PYBUILD_TEST_ARGS=-k "not (healpy.pixelfunc.nside2pixarea or healpy.pixelfunc.nside2resol)"
#rounding error
endif

# Enable build hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_shlibdeps:
	dh_numpy3

matplotlibrc:
	echo backend: agg > $@

override_dh_auto_test: matplotlibrc
	PYTHONDONTWRITEBYTECODE=yes dh_auto_test

# After installing, remove data directories that we will replace with symlinks
execute_after_dh_install:
	rm -rf debian/python*-healpy/usr/lib/python*/dist-packages/healpy/data

# Fix permissions on data files
execute_before_dh_fixperms-indep:
	find debian/healpy-data/usr/share/healpy -type f | xargs chmod -x