Skip to content

Fix py_freeze! to run library with __main__ without __init__ - #4581

Closed
youknowone wants to merge 1 commit into
RustPython:mainfrom
youknowone:fix-pyfreeze
Closed

youknowone wants to merge 1 commit into
RustPython:mainfrom
youknowone:fix-pyfreeze

Conversation

@youknowone

Copy link
Copy Markdown
Member

This fix enables wasi runs -m test

@coolreader18

Copy link
Copy Markdown
Member

It seems like CPython just has a dummy file as Lib/test/__init__.py? It seems like __init__-less packages are deprecated, or at least the code enabling them is marked as a backwards-compatibility hack

@youknowone

Copy link
Copy Markdown
Member Author

oh, i missed that. Thank you!

@youknowone youknowone closed this Mar 2, 2023
@youknowone
youknowone deleted the fix-pyfreeze branch September 13, 2026 07:21
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.

2 participants