Mercurial > hgrepos > Python2 > PyMuPDF
changeset 44:0a8b06e38e19
Need "packaging" at wheel build time too.
Parsing of version_p into a tuple now is done at build time.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 11 Oct 2025 17:16:23 +0200 |
| parents | 202a1f38a622 |
| children | b74429b0f5c4 |
| files | setup.py |
| diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/setup.py Sat Oct 11 17:15:08 2025 +0200 +++ b/setup.py Sat Oct 11 17:16:23 2025 +0200 @@ -773,7 +773,8 @@ except Exception: return 0 swig_version_tuple = tuple(int_or_0(i) for i in swig_version.split('.')) - version_p_tuple = tuple(int_or_0(i) for i in version_p.split('.')) + import packaging.version + version_p_tuple = packaging.version.Version(version_p).release log(f'{swig_version=}') text = '' if os.path.isdir(mupdf_location): @@ -1473,6 +1474,11 @@ print(f'OpenBSD: pip install of swig does not build; assuming `pkg_add swig`.') else: ret.append( 'swig') + # + # Needed extension version parsing with a local version part. + # Our FreeBSD build has a local version. + # + ret.append('packaging') return ret
