File: rules

package info (click to toggle)
python-crypto 2.6.1-7
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,032 kB
  • ctags: 3,599
  • sloc: ansic: 12,466; python: 10,482; sh: 41; makefile: 14
file content (24 lines) | stat: -rwxr-xr-x 710 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

# build with -O3 (as upstream does) if noopt is not set
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
export DEB_CFLAGS_MAINT_APPEND=-O3
endif

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

override_dh_clean:
	# Keep LEGAL/copy/LICENSE.orig
	dh_clean -XLEGAL/copy/LICENSE.orig

override_dh_auto_build-indep:
	pybuild --build -p $(shell pyversions -vd)
	pybuild -s custom --build -p $(shell pyversions -vd) \
		--build-args="env PYTHONPATH={build_dir} epydoc --config Doc/epydoc-config"

override_dh_auto_test-arch:
	dh_auto_test -- -s custom --test-args="{interpreter} setup.py test"

# no test and install for indep
override_dh_auto_install-indep override_dh_auto_test-indep: