diff options
| author | Stéphane Bidoul (ACSONE) <stephane.bidoul@acsone.eu> | 2018-06-30 09:41:31 +0000 |
|---|---|---|
| committer | Stéphane Bidoul (ACSONE) <stephane.bidoul@acsone.eu> | 2019-08-05 17:25:59 +0000 |
| commit | 795c7b0a9415d04a777e1a5d48921adbd72f38cf (patch) | |
| tree | 7f82b28fd52bba76de3ac16064e5a1cf9c776b93 /addons/auth_ldap | |
| parent | 4f44ad4fe4e670eedb357bf5c04972c597fa3d5b (diff) | |
[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>
Diffstat (limited to 'addons/auth_ldap')
| -rw-r--r-- | addons/auth_ldap/__manifest__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/auth_ldap/__manifest__.py b/addons/auth_ldap/__manifest__.py index 62fa393e24d..97bad615a50 100644 --- a/addons/auth_ldap/__manifest__.py +++ b/addons/auth_ldap/__manifest__.py @@ -11,6 +11,6 @@ 'views/res_config_settings_views.xml', ], 'external_dependencies' : { - 'python' : ['ldap'], + 'python' : ['pyldap'], } } |
