Skip to content
Snippets Groups Projects
Commit 795c7b0a authored by Stéphane Bidoul's avatar Stéphane Bidoul
Browse files

[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: default avatarChristophe Simonis <chs@odoo.com>
parent 4f44ad4f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment