Skip to content

Document Pyodide compatibility pattern#1

Merged
milanofthe merged 1 commit into
masterfrom
feat/pyodide-compat-pattern
May 27, 2026
Merged

Document Pyodide compatibility pattern#1
milanofthe merged 1 commit into
masterfrom
feat/pyodide-compat-pattern

Conversation

@milanofthe
Copy link
Copy Markdown
Member

Add a TEMPLATE.md section, a commented marker example in pyproject.toml, and a commented defensive re-export in __init__.py so future toolboxes have the pattern at hand: tag native-code deps with ; sys_platform != 'emscripten' and gate their re-export with try/except ImportError. Default pip install still pulls everything eagerly.

@milanofthe milanofthe merged commit 06153c0 into master May 27, 2026
5 checks passed
@milanofthe milanofthe deleted the feat/pyodide-compat-pattern branch May 27, 2026 09:47
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.

1 participant