[Pkg-gnupg-commit] [gpgme] 110/412: python: Various fixes.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:26:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit 2c3a5d93e78cfca22785e51c5a65184a47da4bff
Author: Justus Winter <justus at gnupg.org>
Date:   Wed May 18 13:17:59 2016 +0200

    python: Various fixes.
    
    * configure.ac: Fix SWIG detection, bump required Python version.
    * lang/python/Makefile.am: Portability fix.
    
    Signed-off-by: Justus Winter <justus at gnupg.org>
---
 configure.ac            | 7 +++----
 lang/python/Makefile.am | 2 +-
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 36f4f94..1472132 100644
--- a/configure.ac
+++ b/configure.ac
@@ -345,16 +345,15 @@ if test "$found" = "1"; then
     AX_PKG_SWIG
     if test -z "$SWIG"; then
         if test "$explicit_languages" = "1"; then
-            die=yes
-            AC_MSG_NOTICE([[
+            AC_MSG_ERROR([[
 ***
 *** You need SWIG to build the Python bindings.
 ***]])
         else
-            enabled_languages=$(echo $enabled_languages | sed 's/qt//')
+            enabled_languages=$(echo $enabled_languages | sed 's/python//')
         fi
     else
-        AM_PATH_PYTHON([3.2])
+        AM_PATH_PYTHON([3.3])
         AX_SWIG_PYTHON
     fi
 fi
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
index 308fcd0..86c1965 100644
--- a/lang/python/Makefile.am
+++ b/lang/python/Makefile.am
@@ -26,7 +26,7 @@ gpgme.h: ../../src/gpgme.h
 # For VPATH builds we need to copy some files because Python's
 # distutils are not VPATH-aware.
 copystamp: $(srcdir)/pyme $(srcdir)/helpers.c $(srcdir)/helpers.h
-	if test "$(srcdir)" != "$(builddir)" ; then cp -a $^ . ; fi
+	if test "$(srcdir)" != "$(builddir)" ; then cp -r $^ . ; fi
 	touch $@
 
 gpgme_wrap.c pyme/pygpgme.py: gpgme.i gpgme.h copystamp

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list