-
We are in the process of generating wheels for the Fortran Package Manager (fpm: https://github.com/fortran-lang/fpm). However, the MacOS arm64 build has been causing us grief (see workflow log: https://github.com/awvwgk/fpm-on-wheels/actions/runs/4535252232/jobs/7990474203 and the full cmake project on https://github.com/awvwgk/fpm-on-wheels/tree/build/cmake). Building the Also, since we don't actually have any Python in our code it would be ideal if we built wheels without any mention to the Python ABI i.e. Thanks for all the great work you've been doing on |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I'm not an expert of compiling on macOS, but log explicitly says that part of code is x86-64. Also, I see that linking contains
|
Beta Was this translation helpful? Give feedback.
scikit-build-core
supports this directly via a configuration parameter. Classic scikit-build is limited to setuptools, so it can't directly producepy3-none
, but you can retag the wheel (starting with wheel 0.40):$ wheel tags --python-tag py3 --abi-tag none --remove <filename>.whl
You can't get dependencies from brew for building cross-compiled wheels (and in general, they aren't designed for redistributable binaries either). So you'll need a Universal version of g-fortran ideally compiled with a good setting for MACOSX_DEPLOYMENT_TARGET. Usually this means you need to build the dep yourself - though always check to see if someone supplies binaries. OpenMP's not too hard, and I think gfo…