Daily updates from Odoo
Monday, April 20, 2026
1 change · 17.0
Enhancements to existing features
This update removes Odoo’s hard dependency on an outdated Python packaging helper that is being phased out. It helps the system stay compatible with newer Python setups and reduces the risk of installation or startup issues as those tools evolve.
Original PR description
pkg_resources is deprecated as a library. It's use becomes problematic as, for instance, since setuptools 71, importing pkg_resources makes all vendored dependencies of setuptools visible on sys.path. pkg_resources is even entirely removed since setuptools 81. This commit keeps pkg_resources as a primary approach for compatibility reason but provides a fallback when not present (like with an up-to-date setuptools) without changing the current requirements (i.e. no additional dependency on `packaging`). Note: while not a backport, this is inspired by odoo/odoo#181768