-
Notifications
You must be signed in to change notification settings - Fork 239
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
Macos-14 builds fail if output_dir does not already exist AND testing is enabled #1850
Comments
Happy to also put in a PR for this as it should be a quick fix to replace |
I believe CPython just translates the OS error code into Python errors. The error code 20 becomes NotADirectoryError. My initial uninformed guess would be the code is different. I can’t quickly replicate on macOS 14 Intel or macOS 14 ARM locally. There must be something specific about the setup when it happened in cibuildwheel that I’m not capturing. |
You shouldn’t have to make the wheelhouse directory. |
Description
Building for Macos14 (in github actions = arm64) fails when attempting to move the wheel after testing if the output directory does not already exist.
Contrary to the documentation
pathlib.Path.unlink()
throws aNotADirectoryError
in this case, and apparently only on this platform. (I will raise an Issue in cpython for that as well - at least to update the docs ...)Compare:
&& mkdir wheelhouse
totool.cibuildwheel.macos.before-all
): https://github.com/MusicalNinjaDad/FizzBuzz/actions/runs/9354284188/job/25746806904Build log
https://github.com/MusicalNinjaDad/FizzBuzz/actions/runs/9351587993/job/25744497746
CI config
https://github.com/MusicalNinjaDad/FizzBuzz/tree/pr48
The text was updated successfully, but these errors were encountered: