diff --git a/kindlecomicconverter/shared.py b/kindlecomicconverter/shared.py index 1a4c1b3..7bb2ae5 100644 --- a/kindlecomicconverter/shared.py +++ b/kindlecomicconverter/shared.py @@ -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) diff --git a/setup.py b/setup.py index b2cc1ed..34f5652 100644 --- a/setup.py +++ b/setup.py @@ -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,