Closed PFischbeck closed 1 year ago
There are conda packages for clingo for ARM Macs. My guess is that there is some difference between the clang/gcc compilers. If you use the native compiler, clang, it should go through. One could probably also add #include <xlocale.h>
plus some other small changes to make it work.
On this note, we have Actions that build clingo pip packages for various platforms. There is probably also a way to build for ARM Macs. Unfortunately, I don't have an ARM Mac so it is hard for me to test. A PR or an example project compiling clasp using Github Actions targeting ARM macs would really help. Then I could extend the current actions to build read to use binary wheels.
Maybe the whole pip package building could be automated better using cibuildwheel
. It seems to support building for ARM out-of-the box.
Using cibuildwheel
simplifies deployment a lot. Since there was a (small) bug in the last clingo release, I'll do another release soon that will then include arm64 wheels for macos. I just have to iron out some remaining rough edges.
Done, wheels will be online in a couple of hours.
Thanks a lot!
When trying to install clingo with
pip install clingo
, it fails becauseskbuild
is not found. After manually installing this dependency (pip install scikit-build
), it still fails:I am on macOS 12.5.1, with an M1 chip, Python 3.10, pip 22.2.2, G++ 12.2.0.
Installation via
homebrew
works fine, but I want to includeclingo
as a pip dependency in another project.