[IMP] core: improve python external dependencies check
Use pkg_resources.get_distribution() to check if python external
dependencies are installed, instead of trying an import.
The import test is preserved as a backwards compatibility measure.
This better expresses which python distribution needs to be installed
from PyPI and allows declaring a minimum supported version using PEP 440
version specifiers.
Closes #25541
closes odoo/odoo#25549
Signed-off-by:
Christophe Simonis <chs@odoo.com>
Showing
- addons/auth_ldap/__manifest__.py 1 addition, 1 deletionaddons/auth_ldap/__manifest__.py
- addons/hw_blackbox_be/__manifest__.py 1 addition, 1 deletionaddons/hw_blackbox_be/__manifest__.py
- addons/hw_escpos/__manifest__.py 1 addition, 1 deletionaddons/hw_escpos/__manifest__.py
- odoo/addons/base/models/ir_module.py 22 additions, 4 deletionsodoo/addons/base/models/ir_module.py
Loading
Please register or sign in to comment