lieer
lieer copied to clipboard
OSX Instructions
Can someone please share how they do it on a Mac? I have to use a Mac (not by choice) and with every update something Python-related breaks in the system. This time it was the latest Sonoma patch. I can never get the notmuch2 bindings installed properly. I would appreciate it if someone shared their workaround for Mac. Thanks.
Log excerps
Building wheels for collected packages: lieer, notmuch2
Building wheel for lieer (setup.py) ... done
Created wheel for lieer: filename=lieer-1.6-py3-none-any.whl size=47110 sha256=0e07f2c606f06e52e7e0bcbf0c1a2858f72dcc1f2ecf7bbd07fe5cccce87e101
Stored in directory: /private/var/folders/v9/jfn5y8zd2xn06ggtrjxnrnq40000gn/T/pip-ephem-wheel-cache-1j2mmaky/wheels/08/4c/77/6a2b7e035ac8e9c5cdab9ab7cee273b2a43683cd69f707c359
Building wheel for notmuch2 (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
/opt/homebrew/lib/python3.11/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-14-arm64-cpython-311
creating build/lib.macosx-14-arm64-cpython-311/notmuch2
copying notmuch2/_base.py -> build/lib.macosx-14-arm64-cpython-311/notmuch2
copying notmuch2/_errors.py -> build/lib.macosx-14-arm64-cpython-311/notmuch2
copying notmuch2/_query.py -> build/lib.macosx-14-arm64-cpython-311/notmuch2
copying notmuch2/__init__.py -> build/lib.macosx-14-arm64-cpython-311/notmuch2
copying notmuch2/_build.py -> build/lib.macosx-14-arm64-cpython-311/notmuch2
copying notmuch2/_database.py -> build/lib.macosx-14-arm64-cpython-311/notmuch2
copying notmuch2/_message.py -> build/lib.macosx-14-arm64-cpython-311/notmuch2
copying notmuch2/_config.py -> build/lib.macosx-14-arm64-cpython-311/notmuch2
copying notmuch2/_thread.py -> build/lib.macosx-14-arm64-cpython-311/notmuch2
copying notmuch2/_tags.py -> build/lib.macosx-14-arm64-cpython-311/notmuch2
running build_ext
generating cffi module 'build/temp.macosx-14-arm64-cpython-311/notmuch2._capi.c'
creating build/temp.macosx-14-arm64-cpython-311
building 'notmuch2._capi' extension
creating build/temp.macosx-14-arm64-cpython-311/build
creating build/temp.macosx-14-arm64-cpython-311/build/temp.macosx-14-arm64-cpython-311
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I../../lib -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c build/temp.macosx-14-arm64-cpython-311/notmuch2._capi.c -o build/temp.macosx-14-arm64-cpython-311/build/temp.macosx-14-arm64-cpython-311/notmuch2._capi.o
build/temp.macosx-14-arm64-cpython-311/notmuch2._capi.c:572:14: fatal error: 'notmuch.h' file not found
#include <notmuch.h>
^~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]