#!/bin/sh # Shortcut to invoke `pip -e` with arguments that make it compile and # link against the compiled notmuch in the repo's lib/ directory. # This assumes it is being called with bindings/python-cff/ as cwd. set -x LIBDIR=../../lib pip install \ --global-option=build_ext \ --global-option=--include-dirs=$LIBDIR \ --global-option=--library-dirs=$LIBDIR \ --global-option=--rpath=$(pwd)/$LIBDIR \ -e .