Skip to content

Build Windows Wheel in MSYS2 UCRT64 Environment? #1721

Closed Answered by scott-guthridge
scott-guthridge asked this question in Q&A
Discussion options

You must be logged in to vote

To answer my own question, it is possible. The key is to first set up the MSYS2 environment with UCRT64 system. Using UCRT64 builds real Windows libraries (that can be used inside or outside of the MSYS environment). Then in the next block, the shell: msys2 {0} line starts a shell where you can do the build in a POSIX-like environment.

    - name: Setup MSYS2 (Windows)
      if: ${{ runner.os == 'Windows' }}
      uses: msys2/setup-msys2@v2
      with:
        msystem: UCRT64
        update: true
        install: mingw-w64-ucrt-${{matrix.buildplat.arch}}-gcc
                 mingw-w64-ucrt-${{matrix.buildplat.arch}}-ghostscript
                 mingw-w64-ucrt-${{matrix.buildplat.arch}}-li…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scott-guthridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant