Bug Description: python3-packaging is not shipped in RHEL8. But it's bundled with setuptools which is present in all major distributions.
Fix Description:
Use pkg_resources module from setuptools which provides needed
functionality, change lib389 and rpm dependencies accordingly.
Unfortunately, pkg_resources.parse_version() returns different
objects for different strings too, so use LegacyVersion directly
from pkg_resources.extern.packaging.version.
Bug Description:
python3-packagingis not shipped in RHEL8. But it's bundled withsetuptoolswhich is present in all major distributions.Fix Description:
Use
pkg_resourcesmodule fromsetuptoolswhich provides neededfunctionality, change lib389 and rpm dependencies accordingly.
Unfortunately,
pkg_resources.parse_version()returns differentobjects for different strings too, so use
LegacyVersiondirectlyfrom
pkg_resources.extern.packaging.version.Fixes: https://pagure.io/389-ds-base/issue/50712
Relates: https://pagure.io/389-ds-base/issue/50706