diff options
| author | David Bremner <david@tethera.net> | 2021-10-31 07:03:54 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-12-05 09:08:48 -0400 |
| commit | f17d75b83c90ae4ea75f79377f3acb873b9e564e (patch) | |
| tree | da6c0ae6b5d5e07c8a69f4dc15c8361be3f74e26 /configure | |
| parent | 95f0c59fe98b1404ca8a4042becf650aeb09b923 (diff) | |
python-cffi: fix out-of-tree build
The main idea is to replace the hack of copying version.txt into the
bindings source with a generated _notmuch_config.py file.
This will mean that the bindings only build after configuring and
building notmuch itself. Given those constraints, "pip install ."
should work.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1579,6 +1579,14 @@ EOF printf "rsti_dir = '%s'\n" "$(cd emacs && pwd -P)" } > sphinx.config +cat > bindings/python-cffi/_notmuch_config.py <<EOF +# _notmuch_config.py was automatically generated by the configure +# script in the root of the notmuch source tree. +NOTMUCH_VERSION_FILE='${NOTMUCH_SRCDIR}/version.txt' +NOTMUCH_INCLUDE_DIR='${NOTMUCH_SRCDIR}/lib' +NOTMUCH_LIB_DIR='${NOTMUCH_SRCDIR}/lib' +EOF + # Finally, after everything configured, inform the user how to continue. cat <<EOF |
