Skip to content

MAINT Remove remaining codes that import compat functions directly#263

Merged
ryanking13 merged 2 commits intopyodide:mainfrom
ryanking13:remove-compat-import2
Mar 31, 2026
Merged

MAINT Remove remaining codes that import compat functions directly#263
ryanking13 merged 2 commits intopyodide:mainfrom
ryanking13:remove-compat-import2

Conversation

@ryanking13
Copy link
Copy Markdown
Member

Another step toward #237

This PR removes the all the remaining code that imports function directly from compatibility layer package. instead all the compatibiilty codes are injected as a parameter or a class attribute.

After this, we can clean up the _compat_not_in_pyodide.py from the micropip package wheel as they are not used in runtime at all.

The code structure is not ideal as we inject compat layer everywhere... but I think we can fix that later.

@ryanking13 ryanking13 merged commit 4b72ba4 into pyodide:main Mar 31, 2026
7 checks passed
@ryanking13 ryanking13 deleted the remove-compat-import2 branch March 31, 2026 05:32
@agriyakhetarpal
Copy link
Copy Markdown
Member

Oops, I totally missed your request for review here, @ryanking13. Please feel free to ping me on Discord at any time, always, if this happens again!

@ryanking13
Copy link
Copy Markdown
Member Author

Oops, I totally missed your request for review here, @ryanking13. Please feel free to ping me on Discord at any time, always, if this happens again!

No worries. I also totally forgot about this PR 😅 As I am preparing for next Pyodide release, I was cleaning up some stale PRs.

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