Skip to content

Use PYODIDE environment variable for Emscripten cross-compilation detection#21714

Merged
ilevkivskyi merged 1 commit into
python:masterfrom
agriyakhetarpal:use-pyodide-env-var
Jul 10, 2026
Merged

Use PYODIDE environment variable for Emscripten cross-compilation detection#21714
ilevkivskyi merged 1 commit into
python:masterfrom
agriyakhetarpal:use-pyodide-env-var

Conversation

@agriyakhetarpal

Copy link
Copy Markdown
Contributor

Hi! I noticed that y'all were carrying this workaround ever since #14888. A better way to detect this is through the PYODIDE environment variable, which we've documented over the years, and is what most projects use now. The MACHDEP generality would mostly apply to non-Pyodide-specific WASM build targets, which are growing in relevance but are a bit less mature as Pyodide at this time.

Also, thank you for adopting PEP 783 and publishing pyemscripten wheels for mypy – we're pretty happy about it!

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@ilevkivskyi ilevkivskyi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ilevkivskyi ilevkivskyi merged commit 0faa413 into python:master Jul 10, 2026
25 checks passed
@agriyakhetarpal agriyakhetarpal deleted the use-pyodide-env-var branch July 10, 2026 06:06
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