[python] set rpath in setup.cfg

dtk dtk at gmx.de
Wed Oct 12 07:55:30 PDT 2011


Hey guys,

I installed notmuch locally (~/.local) and now the python bindings fail to
find the .so.

Anyone happens to know how to set the rpath in the setup.cfg? Putting it
in the [build] section doesn't work:

~~~snip~~~
$ python setup.py install --prefix=$STOW/notmuch_python
running install
error: error in setup.cfg: command 'build' has no such option 'rpath'
$
~~~snip~~~

Putting it in [build_ext] works but neither that nor building with

~~~snip~~~
$ python setup.py build_ext --rpath=/home/dtk/.local/lib
running build_ext
$ python setup.py install --prefix=$STOW/notmuch_python/
running install
running build
running build_py
copying notmuch/database.py -> build/lib.linux-x86_64-2.7/notmuch
copying notmuch/thread.py -> build/lib.linux-x86_64-2.7/notmuch
copying notmuch/tag.py -> build/lib.linux-x86_64-2.7/notmuch
copying notmuch/globals.py -> build/lib.linux-x86_64-2.7/notmuch
copying notmuch/version.py -> build/lib.linux-x86_64-2.7/notmuch
copying notmuch/message.py -> build/lib.linux-x86_64-2.7/notmuch
copying notmuch/filename.py -> build/lib.linux-x86_64-2.7/notmuch
copying notmuch/__init__.py -> build/lib.linux-x86_64-2.7/notmuch
running install_lib
running install_egg_info
Removing
/home/dtk/.local/stow/notmuch_python//lib/python2.7/site-packages/notmuch-0.9_rc2-py2.7.egg-info
Writing
/home/dtk/.local/stow/notmuch_python//lib/python2.7/site-packages/notmuch-0.9_rc2-py2.7.egg-info
$
~~~snip~~~

seems to have any effect.

Am I missing out on something? Would be great if someone happened to know
a solution.
/me dislikes LD_LIBRARY_PATH :/

tx in advance
dtk


More information about the notmuch mailing list