Mercurial > hgrepos > Python2 > PyMuPDF
changeset 25:575f70dbc259
Do not expose local directory names in mupdf_location in _build.py.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 19 Sep 2025 18:20:23 +0200 |
| parents | 21c6080bc183 |
| children | a78c22e89a53 |
| files | setup.py |
| diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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'
