unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / Atom feed
* [PATCH] configure: fix python-cffi out-of-tree build
@ 2021-02-15 21:54 Tomi Ollila
  0 siblings, 0 replies; only message in thread
From: Tomi Ollila @ 2021-02-15 21:54 UTC (permalink / raw)
  To: notmuch; +Cc: tomi.ollila

In case of out of tree build:

* Copy version.txt and lib/notmuch.h to the root of the python-cffi
  bindings directory (in addtion to the files already copied there)

* Modify _build.py to refer '.' instead of '../../lib' for searching
  c include files

While at it, fixed indentation in related lines from 7 spaces to one
tab (like indentation done elsewhere in the same file).
---
 configure | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index cfa9c09b..11605942 100755
--- a/configure
+++ b/configure
@@ -75,9 +75,14 @@ if [ "$srcdir" != "." ]; then
     # out-of-tree builds (again, not ideal).
     mkdir bindings/python-cffi
     cp -a "$srcdir"/bindings/python-cffi/tests \
-       "$srcdir"/bindings/python-cffi/notmuch2 \
-       "$srcdir"/bindings/python-cffi/setup.py \
-       bindings/python-cffi/
+	"$srcdir"/bindings/python-cffi/notmuch2 \
+	"$srcdir"/bindings/python-cffi/setup.py \
+	"$srcdir"/bindings/python-cffi/version.txt \
+	"$srcdir"/lib/notmuch.h \
+	bindings/python-cffi/
+    sed "/include_dirs=/ s|'[.][.]/[.][.]/lib'|'.'|" \
+	bindings/python-cffi/notmuch2/_build.py > _build.py.wip
+    mv _build.py.wip bindings/python-cffi/notmuch2/_build.py
 fi
 
 # Set several defaults (optionally specified by the user in
-- 
2.29.2

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-15 21:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 21:54 [PATCH] configure: fix python-cffi out-of-tree build Tomi Ollila

unofficial mirror of notmuch@notmuchmail.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/notmuch/0 notmuch/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 notmuch notmuch/ https://yhetil.org/notmuch \
		notmuch@notmuchmail.org
	public-inbox-index notmuch

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.mail.notmuch.general
	nntp://news.gmane.io/gmane.mail.notmuch.general


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git