File: rules

package info (click to toggle)
python-argon2 18.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,484 kB
  • sloc: ansic: 3,715; python: 1,328; makefile: 307; sh: 55
file content (23 lines) | stat: -rwxr-xr-x 575 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie

export ARGON2_CFFI_USE_SYSTEM = 1

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(CURDIR)/debian/hypothesis

override_dh_auto_build:
	dh_auto_build
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=`pybuild --print build_dir --interpreter python3` $(MAKE) -C docs html
endif

override_dh_python3:
	dh_python3
	# Remove extra cffi bindings, identical to the default version
	rm -rf debian/python3-argon2/usr/lib/python3.?