Closed julian-smith-artifex-com closed 1 year ago
Looks like things can be made to work by installing Rosetta with:
softwareupdate --install-rosetta --agree-to-license
Thanks for the report and the Rosetta workaround. It's interesting that the compiled swig binary doesn't have an arm64 segment -- I'm kind of wondering if it's an issue with the cibuildwheel
or the macOS GitHub Actions runner environment. There is a public beta of GitHub hosted Apple Silicon runners on the GitHub roadmap listed for this Oct-Dec (https://github.com/github/roadmap/issues/528), which could address the issues building native arm64 wheels for macOS.
The underlying issue (CMAKE_OSX_ARCHITECTURES
not getting propagated to the swig and pcre builds) has been fixed in #99. I'll make an updated 4.1.1 release with the updated swig binaries for macOS.
4.1.1.post0 has been uploaded to PyPI -- no change to the version of swig, but now the universal2 and arm64 wheels for macOS actually have arm64 architectures in them instead of just x86_64. Hopefully that means installing Rosetta is no longer needed.
Installing swig using pip on an ARM mac-mini seems to install an x86_64 binary, which fails at runtime.
My system is:
Here's a reproducer:
The same thing happens with
pip install -vv --force-reinstall --no-cache-dir swig
.This can also be seen by looking at
swig/data/bin/swig
in: https://files.pythonhosted.org/packages/56/2e/094303ec29243111a81b26bb91d0d2692db05159451416490acc8b33fca1/swig-4.1.1-py2.py3-none-macosx_11_0_arm64.whlThanks in advance for any help.