Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions compile_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,14 @@ def _run_pip_install(
env = os.environ.copy()
env["DISTUTILS_USE_SDK"] = "1"
env["MSSdk"] = "1"
# Force UTF-8 standard I/O for every child process pip spawns. When the parent
# environment sets PYTHONIOENCODING to a UTF-16 codec (PyCharm run configurations
# can do this), meson-python's build backend launches "meson --version", which
# emits its version as UTF-16, then decodes the captured bytes with the locale
# codepage. The result is NUL-interleaved text that meson-python's version parser
# silently treats as version 0, aborting the scipy source build with a misleading
# "Could not find meson version 0.63.3 or newer, found 1.11.1" error.
env["PYTHONIOENCODING"] = "utf-8"
# kiwisolver's pyproject.toml declares dynamic version via setuptools_scm,
# which falls back to "0.0.0" outside a git checkout. Pip's metadata
# consistency check then rejects the sdist (requested 1.5.0, got 0.0.0).
Expand Down
Loading