From a576e35ae287b3bf6d67dc7913b8b7482c0fb4ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sat, 1 Jun 2024 14:31:40 +0200 Subject: [PATCH] Add .pth to force_include too in editable mode --- src/hatch_odoo/build_hook.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hatch_odoo/build_hook.py b/src/hatch_odoo/build_hook.py index bd5a080..3f0e4fa 100644 --- a/src/hatch_odoo/build_hook.py +++ b/src/hatch_odoo/build_hook.py @@ -65,3 +65,7 @@ def initialize(self, version: str, build_data: dict[str, Any]) -> None: force_include_editable[pth_file.name] = ( f"{project_name}_editable_odoo_addons.pth" ) + force_include = build_data["force_include"] + force_include[pth_file.name] = ( + f"{project_name}_editable_odoo_addons.pth" + )