setuptools 67 vendors packaging 23.0:
https://setuptools.pypa.io/en/stable/history.html#v67-0-0
pypa/setuptools#3790: Bump vendored version of packaging to 23.0 (pyparsing is no longer required and was removed). As a consequence, users will experience a more strict parsing of requirements. Specifications that don’t comply with PEP 440 and PEP 508 will result in build errors.
While packaging 22.0 removed LegacyVersion:
https://packaging.pypa.io/en/stable/changelog.html
pypa/packaging#407
So, build of lib389 fails
generating man/dsconf.8
Traceback (most recent call last):
File "/usr/src/RPM/BUILD/389-ds-base-2.2.4/src/lib389/lib389/utils.py", line 46, in <module>
from pkg_resources.extern.packaging.version import LegacyVersion
ImportError: cannot import name 'LegacyVersion' from 'pkg_resources.extern.packaging.version' (/usr/lib64/python3/site-packages/pkg_resources/_vendor/packaging/version.py)
and all the clients of lib389 are broken:
from ipaserver.install import ipa_restore
../ipaserver/install/ipa_restore.py:44: in <module>
from ipaserver.install import dsinstance, httpinstance, cainstance, krbinstance
../ipaserver/install/dsinstance.py:29: in <module>
from lib389 import DirSrv
/usr/lib/python3/site-packages/lib389/__init__.py:54: in <module>
from lib389._entry import Entry
/usr/lib/python3/site-packages/lib389/_entry.py:20: in <module>
from lib389.utils import (ensure_str, ensure_bytes, ensure_list_bytes, display_log_data)
/usr/lib/python3/site-packages/lib389/utils.py:49: in <module>
from packaging.version import LegacyVersion
E ImportError: cannot import name 'LegacyVersion' from 'packaging.version' (/usr/lib/python3/site-packages/packaging/version.py)
setuptools67 vendorspackaging23.0:https://setuptools.pypa.io/en/stable/history.html#v67-0-0
While
packaging22.0 removedLegacyVersion:https://packaging.pypa.io/en/stable/changelog.html
pypa/packaging#407
So, build of
lib389failsand all the clients of
lib389are broken: