Mercurial > hgrepos > Python2 > PyMuPDF
comparison setup.py @ 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 |
comparison
equal
deleted
inserted
replaced
| 24:21c6080bc183 | 25:575f70dbc259 |
|---|---|
| 784 except Exception: | 784 except Exception: |
| 785 return 0 | 785 return 0 |
| 786 swig_version_tuple = tuple(int_or_0(i) for i in swig_version.split('.')) | 786 swig_version_tuple = tuple(int_or_0(i) for i in swig_version.split('.')) |
| 787 log(f'{swig_version=}') | 787 log(f'{swig_version=}') |
| 788 text = '' | 788 text = '' |
| 789 text += f'mupdf_location = {mupdf_location!r}\n' | 789 if os.path.isdir(mupdf_location): |
| 790 mupdf_location = mupdf_location.rstrip('/') | |
| 791 text += 'mupdf_location = ' + repr(os.path.basename(mupdf_location)) + '\n' | |
| 792 else: | |
| 793 text += f'mupdf_location = {mupdf_location!r}\n' | |
| 790 text += f'pymupdf_version = {version_p!r}\n' | 794 text += f'pymupdf_version = {version_p!r}\n' |
| 791 text += f'pymupdf_git_sha = {sha!r}\n' | 795 text += f'pymupdf_git_sha = {sha!r}\n' |
| 792 text += f'pymupdf_git_diff = {diff!r}\n' | 796 text += f'pymupdf_git_diff = {diff!r}\n' |
| 793 text += f'pymupdf_git_branch = {branch!r}\n' | 797 text += f'pymupdf_git_branch = {branch!r}\n' |
| 794 text += f'swig_version = {swig_version!r}\n' | 798 text += f'swig_version = {swig_version!r}\n' |
