1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-12 17:26:23 +00:00

add pymupdf requirement

This commit is contained in:
Alex Xu
2025-07-20 21:57:08 -07:00
parent 8ab7520754
commit 380dc5c42c
2 changed files with 8 additions and 1 deletions

View File

@@ -120,6 +120,12 @@ def dependencyCheck(level):
missing.append('Pillow 11.3.0+')
except ImportError:
missing.append('Pillow 11.3.0+')
try:
from pymupdf import __version__ as pymupdfVersion
if Version('1.26.1') > Version(pymupdfVersion):
missing.append('PyMuPDF 1.26.1+')
except ImportError:
missing.append('PyMuPDF 1.26.1+')
if len(missing) > 0:
print('ERROR: ' + ', '.join(missing) + ' is not installed!')
sys.exit(1)

View File

@@ -83,7 +83,8 @@ setuptools.setup(
'mozjpeg-lossless-optimization>=1.1.2',
'natsort>=8.4.0',
'distro',
'numpy>=1.22.4'
'numpy>=1.22.4',
'PyMuPDF>=1.26.1',
],
classifiers=[],
zip_safe=False,