File: rules

package info (click to toggle)
python-nacl 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,792 kB
  • sloc: ansic: 45,789; sh: 13,278; python: 5,911; asm: 4,264; makefile: 1,017; xml: 30; pascal: 11
file content (45 lines) | stat: -rwxr-xr-x 1,044 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/make -f

export DH_VERBOSE=1

export PYBUILD_NAME=nacl
export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS={dir}/tests/

export PY3DEFAULT=$(shell py3versions -d)

export PYTHONDONTWRITEBYTECODE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow

# Make sure PyNaCl uses the system libsodium instead of trying to use the
# vendored copy
export SODIUM_INSTALL=system


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


override_dh_clean:
	dh_clean
	# Remove the vendored libsodium just to make sure we don't build
	# against it
	rm -rf src/libsodium


override_dh_auto_clean:
	dh_auto_clean
	rm -rf src/nacl/_lib/__pycache__
	rm -rf $(CURDIR)/debian/hypothesis

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=debian/python3-nacl/usr/lib/$(PY3DEFAULT)/dist-packages http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs debian/python-nacl-doc/usr/share/doc/python-nacl-doc/html
	dh_sphinxdoc
endif


override_dh_python3:
	dh_python3
	rm -rf debian/python3-nacl/usr/lib/python3.?