File: rules

package info (click to toggle)
pyfai 0.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 116,836 kB
  • ctags: 36,561
  • sloc: python: 28,463; lisp: 4,241; ansic: 118; sh: 16; makefile: 14
file content (40 lines) | stat: -rwxr-xr-x 790 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
#!/usr/bin/make -f

export DH_VERBOSE=1

PYVERS=$(shell pyversions -vs)

# do not remove the histogram.c file this code is there
# beacuse git-buildpackage is run without eh patch applyed. It
# will be possible to get rid of this once the patch applyed
# upstream.
override_dh_auto_clean:
	touch src/histogram_omp.c

	dh_auto_clean

override_dh_clean:
	dh_clean

	# remove the cython generated file to force rebuild
	rm -f $(patsubst %.pyx,%.c,$(wildcard src/*.pyx))


override_dh_auto_install:
	dh_auto_install
	dh_numpy

#override_dh_auto_test:
#	dh_auto_test
#ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
#	set -e -x; \
#	for py in $(PYVERS); do \
#		env http_proxy='localhost' python$$py setup.py test;\
#	done
#endif

#skip tests
override_dh_auto_test:

%:
	dh $@ --with python2