Skip to content

[FIX] pyproject: allow editable installs - #479

Open
yajo wants to merge 1 commit into
odoo:masterfrom
moduon:fix-editable-install
Open

[FIX] pyproject: allow editable installs#479
yajo wants to merge 1 commit into
odoo:masterfrom
moduon:fix-editable-install

Conversation

@yajo

@yajo yajo commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Editable installs failed because hatchling's dev-mode path rewrite ("src" -> "odoo/upgrade") is unsupported by the editables library, raising a ValueError (pfmoore/editables#20).

Expose the upgrade scripts at their real location by adding a symlink odoo/upgrade pointing to src, and set dev-mode-dirs = ["."] so the repo root is added to the path in dev mode. sources is left untouched, so regular wheels keep building unchanged.

Fixes #190

Assisted-by: OpenCode + DeepSeek v4 Flash

Notice that a nicer fix would be to rename src into odoo/upgrade, because I don't know how Windows will handle symlinks; but this is the MVP.

Editable installs failed because hatchling's dev-mode path rewrite
("src" -> "odoo/upgrade") is unsupported by the editables library,
raising a ValueError (pfmoore/editables#20).

Expose the upgrade scripts at their real location by adding a symlink
`odoo/upgrade` pointing to `src`, and set `dev-mode-dirs = ["."]` so the
repo root is added to the path in dev mode. `sources` is left untouched,
so regular wheels keep building unchanged.

Fixes odoo#190

Assisted-by: OpenCode + DeepSeek v4 Flash
@robodoo

robodoo commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Pull request status dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot install in editable mode

2 participants