mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
It turns out that python-pymupdf doesn't require zlib directly, but it
does require the zlib python module.
This fixes the following runtime error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.11/site-packages/fitz/__init__.py", line 22, in <module>
File "/usr/lib/python3.11/site-packages/fitz/fitz.py", line 3402, in <module>
File "/usr/lib/python3.11/gzip.py", line 9, in <module>
ModuleNotFoundError: No module named 'zlib'
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit ba6baa019b)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
24 lines
769 B
Plaintext
24 lines
769 B
Plaintext
config BR2_PACKAGE_PYTHON_PYMUPDF
|
|
bool "python-pymupdf"
|
|
depends on BR2_INSTALL_LIBSTDCPP # mupdf -> harfbuzz
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # mupdf -> harfbuzz
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # mupdf -> harfbuzz
|
|
depends on BR2_PACKAGE_XORG7
|
|
select BR2_PACKAGE_HOST_SWIG
|
|
select BR2_PACKAGE_FREETYPE
|
|
select BR2_PACKAGE_MUPDF
|
|
select BR2_PACKAGE_PYTHON3_ZLIB # runtime
|
|
help
|
|
Python bindings for the PDF rendering library MuPDF.
|
|
|
|
https://github.com/pymupdf/PyMuPDF
|
|
|
|
comment "python-pymupdf needs Xorg"
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
|
depends on !BR2_PACKAGE_XORG7
|
|
|
|
comment "python-pymupdf needs a toolchain w/ C++, gcc >= 4.9"
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
|
depends on !BR2_INSTALL_LIBSTDCPP || \
|
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|