comparison setup.py @ 23:3b13504f9d89

Use the official packaging.version.Version to parse version strings. While there revert the previons change to _int_rc(): it is not needed now.
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 19 Sep 2025 12:40:07 +0200
parents fdb709369d57
children 21c6080bc183
comparison
equal deleted inserted replaced
22:d77477b4e151 23:3b13504f9d89
1364 assert 0, f'Unrecognised {PYMUPDF_SETUP_FLAVOUR=}.' 1364 assert 0, f'Unrecognised {PYMUPDF_SETUP_FLAVOUR=}.'
1365 1365
1366 if os.environ.get('PYODIDE_ROOT'): 1366 if os.environ.get('PYODIDE_ROOT'):
1367 # We can't pip install pytest on pyodide, so specify it here. 1367 # We can't pip install pytest on pyodide, so specify it here.
1368 requires_dist.append('pytest') 1368 requires_dist.append('pytest')
1369
1370 #
1371 # We need packaging because of extended version parsing (including local
1372 # version specifiers.
1373 #
1374 requires_dist.append('packaging')
1369 1375
1370 p = pipcl.Package( 1376 p = pipcl.Package(
1371 name, 1377 name,
1372 version, 1378 version,
1373 summary = summary, 1379 summary = summary,