| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=healpy |
| 4 |
export PYBUILD_TEST_ARGS=--doctest-modules |
| 5 |
ifeq (i386,$(DEB_HOST_ARCH)) |
| 6 |
export PYBUILD_TEST_ARGS=-k "not (healpy.pixelfunc.nside2pixarea or healpy.pixelfunc.nside2resol)" |
| 7 |
#rounding error |
| 8 |
endif |
| 9 |
|
| 10 |
# Enable build hardening |
| 11 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow |
| 12 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 13 |
include /usr/share/dpkg/buildflags.mk |
| 14 |
|
| 15 |
%: |
| 16 |
dh $@ --buildsystem=pybuild |
| 17 |
|
| 18 |
execute_after_dh_shlibdeps: |
| 19 |
dh_numpy3 |
| 20 |
|
| 21 |
matplotlibrc: |
| 22 |
echo backend: agg > $@ |
| 23 |
|
| 24 |
override_dh_auto_test: matplotlibrc |
| 25 |
PYTHONDONTWRITEBYTECODE=yes dh_auto_test |
| 26 |
|
| 27 |
# After installing, remove data directories that we will replace with symlinks |
| 28 |
execute_after_dh_install: |
| 29 |
rm -rf debian/python*-healpy/usr/lib/python*/dist-packages/healpy/data |
| 30 |
|
| 31 |
# Fix permissions on data files |
| 32 |
execute_before_dh_fixperms-indep: |
| 33 |
find debian/healpy-data/usr/share/healpy -type f | xargs chmod -x |