Skip to content

Enhance Cygwin support #149879

@vstinner

Description

@vstinner

Cygwin is a free and open-source Unix-like environment and command-line interface for Microsoft Windows. There is an on-going effort to support Cygwin in Python. I create this meta-issue to track other Cygwin sub-issues.

To install Cygwin on Windows and build CPython in Cygwin, you can use these commands:

  • Download https://cygwin.com/setup-x86_64.exe
  • Run setup-x86_64.exe : select gcc-core, make, libffi-devel, libssl-devel and zlib-devel packages (I also installed vim, my favorite text editor 😁).
  • Start Cygwin shell (icon on the desktop).
  • Type: git config --global core.autocrlf input -- I had issues with newlines in the ./configure script without that.
  • Run git clone https://github.com/python/cpython/ --depth=1
  • Type: cd cpython
  • Type: ./configure --with-pydebug --cache-file=../configure.cache --without-mimalloc
  • Type: make -j8

mimalloc is disabled because it fails at startup on Cygwin with:

$ PYTHONMALLOC=mimalloc ./python.exe -c pass
mimalloc: warning: cannot decommit OS memory (error: 22 (0x16), address: 0x20000430000, size: 0x1bd0000 bytes)
mimalloc: assertion failed: at "Objects/mimalloc/os.c":444, mi_os_decommit_ex
  assertion: "err == 0"
Aborted

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions