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
|
#!/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
|