Skip to content

Commit 488f080

Browse files
committed
3.6.3 hotfix: fix interactive console failing on macro imports.
1 parent 05d70da commit 488f080

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Changelog
22

3-
**3.6.3** (in progress, last updated 27 September 2024)
3+
**3.6.3** (27 September 2024) - hotfix:
44

5-
*No user-visible changes yet.*
5+
**Fixed**
6+
7+
- Fix interactive console failing on macro imports.
8+
- Now `__init__.py` imports `mcpyrate.activate` as soon as possible.
9+
- Neither in-tree tests nor the CI automation detected this. It was only when running `macropython -i` (or IPython with the `mcpyrate.repl.iconsole` extension) in a separate terminal window, against an installed `mcpyrate`, that this error came up.
10+
- For those arriving from Google, the error message was: `ImportError: cannot import name 'macros' from 'mcpyrate.quotes'`
611

712

813
---

mcpyrate/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from .utils import gensym # noqa: F401
99

1010
# For public API inspection, import modules that wouldn't otherwise get imported.
11+
from . import activate # noqa: F401, ensure our own .pyc files are generated with the macro expander enabled
1112
from . import ansi # noqa: F401
1213
from . import debug # noqa: F401
1314
from . import metatools # noqa: F401

0 commit comments

Comments
 (0)