yangao07 / abPOA

abPOA: an SIMD-based C library for fast partial order alignment using adaptive band
MIT License
111 stars 18 forks source link

Stub out github action for python wheels #62

Closed cjw85 closed 5 months ago

cjw85 commented 5 months ago

I may have done this horribly wrong....

This is an attempt to add github actions to build and push Python wheels to PyPI.

Lines 73-76 require credentials being set up in order to perform the push. See https://github.com/pypa/gh-action-pypi-publish for details.

cjw85 commented 5 months ago

I've disabled the macOS ARM builds as although the build successed the resulting library loads with the error:

mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

I don't have time right now to figure out whats going on with that.

yangao07 commented 5 months ago

I've disabled the macOS ARM builds as although the build successed the resulting library loads with the error:

mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

I don't have time right now to figure out whats going on with that.

I am not sure what's going on there, but on my M1-Macbook, I get similar errors. The reason is that if I use conda pip pip install pyabpoa, it detects architecture (platform.machine()) as x86_64, instead of arm64, and the installation will fail. But when I use system python /usr/bin/python3 -m pip install pyabpoa, it works.