# HG changeset patch # User Franz Glasner # Date 1758298823 -7200 # Node ID 575f70dbc2591ae7f83b7044c8e79366e4f1b7c1 # Parent 21c6080bc183820a06d1740b86a57f7c5c7de9a9 Do not expose local directory names in mupdf_location in _build.py. diff -r 21c6080bc183 -r 575f70dbc259 setup.py --- a/setup.py Fri Sep 19 18:19:48 2025 +0200 +++ b/setup.py Fri Sep 19 18:20:23 2025 +0200 @@ -786,7 +786,11 @@ swig_version_tuple = tuple(int_or_0(i) for i in swig_version.split('.')) log(f'{swig_version=}') text = '' - text += f'mupdf_location = {mupdf_location!r}\n' + if os.path.isdir(mupdf_location): + mupdf_location = mupdf_location.rstrip('/') + text += 'mupdf_location = ' + repr(os.path.basename(mupdf_location)) + '\n' + else: + text += f'mupdf_location = {mupdf_location!r}\n' text += f'pymupdf_version = {version_p!r}\n' text += f'pymupdf_git_sha = {sha!r}\n' text += f'pymupdf_git_diff = {diff!r}\n'