Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 DH_VERBOSE := 1
4 export LC_ALL=C.UTF-8
5 PYBUILD_NAME=hnswlib
6 PYBUILD_SYSTEM=pybuild
7 DTMP=$(CURDIR)/debian/tmp
8
9 # avoid -march=native to respect baseline
10 export HNSWLIB_NO_NATIVE=yes
11
12 include /usr/share/dpkg/default.mk
13 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
14
15 %:
16 dh $@ --buildsystem=pybuild --sourcedirectory=python_bindings
17
18 override_dh_auto_test:
19 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
20 if [ -d debian ]; then \
21 echo "I: Testing goes here."; \
22 fi
23 endif
24
25 execute_after_dh_auto_install:
26 rm -vf $(DTMP)/usr/lib/python*/dist-packages/*.dist-info/top_level.txt