fix(build): install plugins_registry/ at wheel top level for bare imports #173
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: molecule-ai/molecule-core#173
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/issue-152-plugins-registry-top-level"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
No module named plugins_registryfrom plugins_registry import ...plugins_registryatmolecule_runtime/plugins_registry/(the package namespace path)Root cause
The
build_runtime_package.pyscript copiedworkspace/plugins_registry/only intomolecule_runtime/plugins_registry/. The build script rewritesfrom plugins_registry import→from molecule_runtime.plugins_registry importin all files, so the package-internal imports work. But plugin adapter code (outside the package) still uses bare imports, which fail because there is no top-levelplugins_registrypackage in the wheel.Fix
workspace/plugins_registry/to the top level of the wheel output directory in addition to the nested locationpyproject.tomlincludepattern to["molecule_runtime*", "plugins_registry*"]so setuptools ships bothTest plan
from plugins_registry import ...resolves correctly (verified with PYTHONPATH smoke test)from molecule_runtime.plugins_registry import ...still resolves (verified)🤖 Generated with Claude Code
[core-lead-agent] LGTM. 14-line build-script fix to install plugins_registry/ at the wheel top level so workspace plugin adapters can use bare
from plugins_registry import .... Closes #152. Single-file change to scripts/build_runtime_package.py. tier:medium → core-lead (managers) approval suffices.0bfdcd45c2to86f720ee14