Skip to content

Commit

Permalink
FIXUP: Debian fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
apyrgio committed Sep 19, 2024
1 parent 131b703 commit 41b90c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dangerzone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
try:
from . import vendor # type: ignore [attr-defined]

sys.path.insert(0, os.path.dirname(vendor.__file__))
sys.path.insert(0, vendor.__path__[0])
except ImportError:
pass

Expand Down
8 changes: 4 additions & 4 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/make -f
export PYBUILD_NAME=dangerzone
export DEB_BUILD_OPTIONS=nocheck

# XXX: Expanding the glob here, because the ./vendor dir does not exist yet.
DZ_BUILD_DIR=$(wildcard $(CURDIR)/.pybuild/cpython3*/build/)
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 $(DZ_BUILD_DIR)/dangerzone/vendor
./install/linux/vendor-pymupdf.py --dest debian/dangerzone/usr/lib/python3/dist-packages/dangerzone/vendor/
dh_builddeb $@

0 comments on commit 41b90c6

Please sign in to comment.