Skip to content

Commit

Permalink
scripts/sysinstall.py: fix test failure after recent rename fitz->pym…
Browse files Browse the repository at this point in the history
…updf.

We were failing to remove all of prior installation before new install.
  • Loading branch information
julian-smith-artifex-com committed May 10, 2024
1 parent 290649c commit e6e1daa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/sysinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,10 @@ def run(command):
pv = '.'.join(platform.python_version_tuple()[:2])
p = f'{root_prefix}/lib/python{pv}'
# `python -m installer` fails to overwrite existing files.
run(f'{sudo}rm -r {p}/site-packages/pymupdf || true')
run(f'{sudo}rm -r {p}/site-packages/pymupdf.py || true')
run(f'{sudo}rm -r {p}/site-packages/fitz || true')
run(f'{sudo}rm -r {p}/site-packages/fitz.py || true')
run(f'{sudo}rm -r {p}/site-packages/pymupdf.py || true')
run(f'{sudo}rm -r {p}/site-packages/PyMuPDF-*.dist-info || true')
run(f'{sudo}rm -r {root_prefix}/bin/pymupdf || true')
if pip == 'venv':
Expand Down

0 comments on commit e6e1daa

Please sign in to comment.