Closed MusicalNinjaDad closed 3 weeks ago
Happy to also put in a PR for this as it should be a quick fix to replace with suppress
with (missing_ok=True)
. I'll also see if I can update the CI to catch this in future.
Cloning now ...
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