| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DH_VERBOSE=1 |
| 4 |
|
| 5 |
export PYBUILD_NAME=nacl |
| 6 |
export PYBUILD_TEST_PYTEST=1 |
| 7 |
export PYBUILD_TEST_ARGS={dir}/tests/ |
| 8 |
|
| 9 |
export PY3DEFAULT=$(shell py3versions -d) |
| 10 |
|
| 11 |
export PYTHONDONTWRITEBYTECODE=1 |
| 12 |
|
| 13 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow |
| 14 |
|
| 15 |
# Make sure PyNaCl uses the system libsodium instead of trying to use the |
| 16 |
# vendored copy |
| 17 |
export SODIUM_INSTALL=system |
| 18 |
|
| 19 |
|
| 20 |
%: |
| 21 |
dh $@ --buildsystem=pybuild |
| 22 |
|
| 23 |
execute_after_dh_auto_clean: |
| 24 |
rm -rf src/nacl/_lib/__pycache__ |
| 25 |
rm -rf $(CURDIR)/debian/hypothesis |
| 26 |
|
| 27 |
override_dh_sphinxdoc: |
| 28 |
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) |
| 29 |
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 |
| 30 |
dh_sphinxdoc |
| 31 |
endif |
| 32 |
|
| 33 |
override_dh_python3: |
| 34 |
dh_python3 --depends=cffi |
| 35 |
rm -rf debian/python3-nacl/usr/lib/python3.? |