althonos / pyrodigal

Cython bindings and Python interface to Prodigal, an ORF finder for genomes and metagenomes. Now with SIMD!
https://pyrodigal.readthedocs.org
GNU General Public License v3.0
132 stars 5 forks source link

install on arm failure #16

Closed jianshu93 closed 2 years ago

jianshu93 commented 2 years ago

Hello Martin,

See this for pip install pyprodigal on arm Mac:

In file included from vendor/cpu_features/src/cpuinfo_arm.c:15: vendor/cpu_features/include/cpuinfo_arm.h:118:2: error: "Including cpuinfo_arm.h from a non-arm target."

error "Including cpuinfo_arm.h from a non-arm target."

   ^
  1 error generated.
  error: command '/opt/homebrew/opt/llvm/bin/clang' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pyrodigal Failed to build pyrodigal ERROR: Could not build wheels for pyrodigal, which is required to install pyproject.toml-based projects

Thanks,

Jianshu

althonos commented 2 years ago

Hi Jianshu,

Could you please give me the output on your Mac for:

$ python -c 'import platform; print(platform.system(), platform.machine())'

It looks like the platform detection code in setup.py erroneously classifies the M1 as arm platform when it should be aarch64.

althonos commented 2 years ago

It looks like on Linux uname -m reports aarch64 but on MacOS it reports arm64... I made a new release that should install properly now :+1:

jianshu93 commented 2 years ago

It works now and I can successfully install it.

Many thanks for the quick response.

Jianshu