From 1eff14539fb96b3a0b2ed9753f3ec32b91d67029 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Mon, 7 Oct 2024 14:46:01 +0300 Subject: [PATCH] debian: Vendor PyMuPDf when building Debian package Install PyMuPDF under ./dangerzone/vendor, right before we build the .deb package. We vendor PyMuPDF just for Debian, since the provided versions don't have OCR support enabled. Currently, we don't use PyMuPDf on the host, but this will change once we fully implement the on-host conversion feature. Refs #625 --- debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/rules b/debian/rules index 25946a9..fbcb611 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,13 @@ #!/usr/bin/make -f export PYBUILD_NAME=dangerzone export DEB_BUILD_OPTIONS=nocheck +export PYBUILD_INSTALL_ARGS=--install-lib=/usr/lib/python3/dist-packages +export PYTHONDONTWRITEBYTECODE=1 +export DH_VERBOSE=1 %: dh $@ --with python3 --buildsystem=pybuild +override_dh_builddeb: + ./install/linux/vendor-pymupdf.py --dest debian/dangerzone/usr/lib/python3/dist-packages/dangerzone/vendor/ + dh_builddeb $@