[gpgme PATCH 2/3] build: python: add prepare target

Alon Bar-Lev alon.barlev at gmail.com
Tue Mar 28 19:45:00 CEST 2017


Hi,

In gpgme-1.8 we added a "prepare" target to allow downstream packagers
to build python using their own python
wrappers skipping the custom autoconf/automake sequences.

The sequence was:
./configure
make
cd lang/python
make prepare
# run setup.py using standard distro distutils handling

In gpgme-1.9 this was broken as once again there is an assumption that
configure detects python versions and automake is capable of running
distutils, both are wrong assumptions.

It is OK that you try to improve the automake build/install of the
python module, however, please provide support for downstream to skip
this part without hacking/patching the package.

I will try to submit a patch to deal with this, please keep this
functionality intact.

Thanks!
Alon





On 29 September 2016 at 10:30, Alon Bar-Lev <alon.barlev at gmail.com> wrote:
> this enables preparing the package using autoconf then build using
> distutils as separate stage.
>
> Signed-off-by: Alon Bar-Lev <alon.barlev at gmail.com>
> ---
>  lang/python/Makefile.am | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
> index 1d7aee8..ea37da9 100644
> --- a/lang/python/Makefile.am
> +++ b/lang/python/Makefile.am
> @@ -65,6 +65,9 @@ dist/pyme3-$(VERSION).tar.gz dist/pyme3-$(VERSION).tar.gz.asc: copystamp
>           $(PYTHON) setup.py sdist --verbose
>         gpg2 --detach-sign --armor dist/pyme3-$(VERSION).tar.gz
>
> +.PHONY: prepare
> +prepare: copystamp
> +
>  .PHONY: sdist
>  sdist: dist/pyme3-$(VERSION).tar.gz dist/pyme3-$(VERSION).tar.gz.asc
>
> --
> 2.7.3
>



More information about the Gnupg-devel mailing list