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 | |
| 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')
| -rw-r--r-- | addons/auth_ldap/__manifest__.py | 2 | ||||
| -rw-r--r-- | addons/hw_blackbox_be/__manifest__.py | 2 | ||||
| -rw-r--r-- | addons/hw_escpos/__manifest__.py | 2 |
3 files changed, 3 insertions, 3 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'], } } diff --git a/addons/hw_blackbox_be/__manifest__.py b/addons/hw_blackbox_be/__manifest__.py index 56803a3af06..a88789d5299 100644 --- a/addons/hw_blackbox_be/__manifest__.py +++ b/addons/hw_blackbox_be/__manifest__.py @@ -19,6 +19,6 @@ Belgian cash register. It allows the communication on with a certified Fiscal Data Module but will not modify the behaviour of the Point of Sale. """, 'depends': ['hw_proxy'], - 'external_dependencies': {'python': ['serial']}, + 'external_dependencies': {'python': ['pyserial']}, 'installable': False, } diff --git a/addons/hw_escpos/__manifest__.py b/addons/hw_escpos/__manifest__.py index e51d811e745..b458ff33031 100644 --- a/addons/hw_escpos/__manifest__.py +++ b/addons/hw_escpos/__manifest__.py @@ -18,7 +18,7 @@ that would need such functionality. """, 'depends': ['hw_proxy'], 'external_dependencies': { - 'python' : ['usb.core','serial','qrcode'], + 'python' : ['pyusb','pyserial','qrcode'], }, 'installable': False, } |
