Skip to content
Christoph Reiter edited this page Sep 23, 2022 · 7 revisions

CPython for Mingw-w64

What is this

A friendly CPython fork that adds support for building CPython using gcc or clang with mingw-w64 using the existing autotools based build system.

Differences between the official CPython build and this

  • We provide the curses module.
  • When the MSYSTEM env var is set and not empty then Python will prefer / over \ as path separator where possible. This leads to better unix path compatibility when relative paths are used.

Branches, Maintenance and Support

For every upstream tag we have a corresponding mingw-<upstream-tag> branch which is based on that tag with our patches on top. One of these branches is the default for the repo and the only one supported. The branch will never be force pushed to and is also what PRs should target.

Once a new upstream version is out we create a new mingw-<new-tag> branch based on it and move our patches over via git cherry-pick. We also take the opportunity to squash and clean up patches while at it.