File: rules

package info (click to toggle)
python-nacl 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,312 kB
  • ctags: 6,634
  • sloc: ansic: 26,642; sh: 15,768; asm: 4,223; python: 1,453; makefile: 903; pascal: 10
file content (43 lines) | stat: -rwxr-xr-x 964 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
41
42
43
#!/usr/bin/make -f

export DH_VERBOSE=1

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

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 python2,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__


override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=debian/python-nacl/usr/lib/python2.7/dist-packages http_proxy='127.0.0.1:9' sphinx-build -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.?