From eec563c2f1e464656dd2b67b5107a1035817b671 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Thu, 23 Apr 2020 09:27:56 +0000 Subject: [PATCH] [FIX] packaging: include _vendor in packaging Since a0f9ef56, a _vendor module was added without `__init__.py` file, following the PEP 420 specifications. Unfortunately, as the `setuptools.find_packages()` only recognize packages if they have such an init file, the _vendor module is not packaged. This leads to an import error when running Odoo from the src,deb and rpm packages. The `setuptools.find_namespace_packages()`, which is compliant with PEP 420, could have been used instead. But this function does not exists in setuptools 39.0.1 which is the one packaged in Ubuntu Bionic. Finally, this commit simply adds the missing dunder init file. closes odoo/odoo#50051 Signed-off-by: Christophe Monniez (moc) --- odoo/tools/_vendor/__init__.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 odoo/tools/_vendor/__init__.py diff --git a/odoo/tools/_vendor/__init__.py b/odoo/tools/_vendor/__init__.py new file mode 100644 index 00000000000..e69de29bb2d