AndrewAnnex / SpiceyPy

SpiceyPy: a Pythonic Wrapper for the SPICE Toolkit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

M1 Mac

mdecaro opened this issue · comments

Is there any work of a port for native M1 Mac?
I saw something early for Anaconda, but I have a homebrew installation.

@mdecaro the conda-forge distribution of spiceypy natively supports M1 macs so I recommend using that version if you can for now. I have PR #424 that is attempting to add the support to the project, although I am running into issues with setuptools/pip that I haven't been able to fix yet. Once that PR is fully working wheels will be provided for all platforms including M1/arm macs.

Until then, if you are able to compile cspice from source yourself you can provide the shared library to spiceypy using the offline installation option https://spiceypy.readthedocs.io/en/main/installation.html#offline-installation. The steps to compile cspice itself can be sorted out from the code in #424, so you can probably clone the branch locally and just run python get_spice.py to generate the shared library and then pass the path to the file using the environment variable described in the docs

Thanks. That worked.