File: rules

package info (click to toggle)
astropy-healpix 0.4-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,456 kB
  • sloc: python: 6,957; ansic: 5,384; makefile: 129; pascal: 70; perl: 9
file content (25 lines) | stat: -rwxr-xr-x 634 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

PYTHON3 := $(shell py3versions -vr)
export PYBUILD_NAME := astropy-healpix
export http_proxy=127.0.0.1:9

# Delete *.c files that should not be installed.
# I'm not sure why this package has this problem while no other
# Astropy-affiliated packages do.
export PYBUILD_AFTER_INSTALL := find {destdir} -name '*.c' -delete

ifeq ($(DEB_HOST_ARCH),i386)
	export DEB_CFLAGS_MAINT_APPEND := -ffloat-store
endif


%:
	dh $@ --with python3 --buildsystem=pybuild

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
test-python%:
	python$* setup.py test -vv --args "-vv"

override_dh_auto_test:  $(PYTHON3:%=test-python%)
endif