Skip to content

Build Python C extension under windows #2039

Answered by emcek
emcek asked this question in Q&A
Discussion options

You must be logged in to vote

The trick is add before cibuildwheel job:

- name: "VS setup env"
  uses: TheMrMilchmann/setup-msvc-dev@v3
  with:
    arch: x64

It just run vcvars64.bat and does nothing on Linux/Mac.

For the record none of is working:

env:
  CIBW_BEFORE_BUILD_WINDOWS: call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
  CIBW_BEFORE_ALL_WINDOWS: call C:\"Program Files"\"Microsoft Visual Studio"\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by emcek
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