mirror of
https://github.com/ciromattia/kcc
synced 2025-12-12 17:26:23 +00:00
add pymupdf requirement
This commit is contained in:
@@ -120,6 +120,12 @@ def dependencyCheck(level):
|
|||||||
missing.append('Pillow 11.3.0+')
|
missing.append('Pillow 11.3.0+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('Pillow 11.3.0+')
|
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:
|
if len(missing) > 0:
|
||||||
print('ERROR: ' + ', '.join(missing) + ' is not installed!')
|
print('ERROR: ' + ', '.join(missing) + ' is not installed!')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|||||||
3
setup.py
3
setup.py
@@ -83,7 +83,8 @@ setuptools.setup(
|
|||||||
'mozjpeg-lossless-optimization>=1.1.2',
|
'mozjpeg-lossless-optimization>=1.1.2',
|
||||||
'natsort>=8.4.0',
|
'natsort>=8.4.0',
|
||||||
'distro',
|
'distro',
|
||||||
'numpy>=1.22.4'
|
'numpy>=1.22.4',
|
||||||
|
'PyMuPDF>=1.26.1',
|
||||||
],
|
],
|
||||||
classifiers=[],
|
classifiers=[],
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user