Skip to content

Latest commit

 

History

History
26 lines (25 loc) · 937 Bytes

File metadata and controls

26 lines (25 loc) · 937 Bytes

Temporary pycrysfml installation process (pyenv python 3.12, macOS 14, Apple Silicon):

  • Install from local wheel
    pip install deps/pycrysfml-0.1.6-py312-none-macosx_14_0_arm64.whl
  • Try to import the module
    python -c "from pycrysfml import cfml_py_utilities"
  • If previous step failed, check the linked libraries
    otool -L .venv/lib/python3.12/site-packages/pycrysfml/crysfml08lib.so
  • If the library is linked to the wrong Python version, you can fix it with:
    install_name_tool -change `python3-config --prefix`/Python `python3-config --prefix`/lib/libpython3.12.dylib .venv/lib/python3.12/site-packages/pycrysfml/crysfml08lib.so
  • Check again the linked Python library
    otool -L .venv/lib/python3.12/site-packages/pycrysfml/crysfml08lib.so
  • Try to import the module again
    python -c "from pycrysfml import cfml_py_utilities"