Skip to content

Commit 0f2caa9

Browse files
scripts/sysinstall.py: Fixes for latest mupdf.
Enable barcode in mupdf. Cope with recent change to lower-case installed pymupdf directory.
1 parent e750964 commit 0f2caa9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/sysinstall.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ def run(command, env_extra=None):
240240
command += f' HAVE_LEPTONICA=yes'
241241
command += f' HAVE_TESSERACT=yes'
242242
command += f' USE_SYSTEM_LIBS=yes'
243+
# We need latest zxingcpp so system version not ok.
244+
command += f' USE_SYSTEM_ZXINGCPP=no'
245+
command += f' barcode=yes'
243246
command += f' VENV_FLAG={"--venv" if pip == "venv" else ""}'
244247
if mupdf_so_mode:
245248
command += f' SO_INSTALL_MODE={mupdf_so_mode}'
@@ -291,7 +294,7 @@ def run(command):
291294
run(f'{sudo}rm -r {p}/site-packages/pymupdf.py || true')
292295
run(f'{sudo}rm -r {p}/site-packages/fitz || true')
293296
run(f'{sudo}rm -r {p}/site-packages/fitz.py || true')
294-
run(f'{sudo}rm -r {p}/site-packages/PyMuPDF-*.dist-info || true')
297+
run(f'{sudo}rm -r {p}/site-packages/pymupdf-*.dist-info || true')
295298
run(f'{sudo}rm -r {root_prefix}/bin/pymupdf || true')
296299
if pip == 'venv':
297300
run(f'{sudo}{venv_name}/bin/python -m installer --destdir {root} --prefix {prefix} {wheel}')

0 commit comments

Comments
 (0)