#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs export CARGO_HOME = $(CURDIR)/debian/.cargo export PYBUILD_NAME=tiktoken # allow limited network access in pybuild-autopkgtest # pytest requires downloading embedding data from Internet ifeq ($(PYBUILD_AUTOPKGTEST), 1) export no_proxy := openaipublic.blob.core.windows.net endif %: dh $@ --with python3 --buildsystem=pybuild execute_before_dh_auto_build: @echo 'blhc: ignore-line-regexp: .*Compiling.*' # Disable automatic test as it try to reach the Internet during testing. override_dh_auto_test: true override_dh_auto_clean: $(RM) Cargo.lock $(RM) -r target dh_auto_clean