-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build Python C extensions on windows-2022 #5141
Comments
The windows-latest GitHub Actions virtual environment just switched from windows-2019 to windows-2022. The windows-2022 virtual environment cannot build Python C extensions (see actions/runner-images#5141). As a temporary workaround, switch to using windows-2019. Fixes scientific-python#177.
Temporarily use windows-2022, since Microsoft Visual C++ is not available on the Windows environment: actions/runner-images#5141.
Looks like tox is not passing through |
@lpsinger thanks, we will take a look! |
@lpsinger could you please share the simple project/yml which allows to reproduce the issue in case it's still actual? |
@lpsinger this yml doesn't work for me without additional steps: https://github.com/nikolai-frolov/image-testing/actions/runs/1910180528. Please provide a simple example. |
See https://github.com/lpsinger/github-actions-windows-2022-python-c-extension. This is as simple as I can make it. |
Given the number of issues linked, not sure if "It is a tox issue" applies in all cases but at least, for the minimal reproducer shared by @lpsinger, it is tox-dev/tox#2382. |
Speaking for |
Hello @lpsinger, Can you please try to re-run you build with windows-latests without other changes? I forked and reverted your repo to the failed commit scientific-python/pytest-doctestplus@feea983 and the build passed https://github.com/akv-platform/pytest-doctestplus/actions/runs/2149804973 JFI: i suspected there's some issue with the tox could not find build tools due to something related to this setting https://docs.python.org/3/distutils/apiref.html#module-distutils.msvccompiler but i am not able to investigate the problem because it is not reproduced. |
Working again now. Thanks! |
Description
When we try to build Python C extensions on windows-2022, the build fails see GitHub Actions log with the following error message:
This worked on windows-2019. We noticed it because windows-latest just bumped to windows-2022.
Virtual environments affected
Image version and build link
20220220.1
Is it regression?
No response
Expected behavior
The Python C extension should be built without errors.
Actual behavior
The build fails with the error message noted above.
Repro steps
Build any Python C extension. See https://github.com/astropy/pytest-doctestplus/blob/main/.github/workflows/python-tests.yml
The text was updated successfully, but these errors were encountered: