[Pkg-gnupg-commit] [gpgme] 22/103: python: Fix distcheck.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Dec 14 18:53:00 UTC 2017


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

dkg pushed a commit to branch master
in repository gpgme.

commit db476e923415f8e458720aaafde7234b802a33ab
Author: Justus Winter <justus at g10code.com>
Date:   Mon Apr 10 15:20:34 2017 +0200

    python: Fix distcheck.
    
    * lang/python/Makefile.am (uninstall-local): Explicitly request the
    scheme 'posix_prefix'.  On Python2.7 the default scheme is
    'posix_local', breaking distcheck.
    
    Fixes-commit: 25e6444b3f4601c7821beab06bc4520deacb007b
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 lang/python/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
index 90075f7..8f80a6b 100644
--- a/lang/python/Makefile.am
+++ b/lang/python/Makefile.am
@@ -93,8 +93,8 @@ install-exec-local:
 	done
 
 uninstall-local:
-	GV=$$(echo $(VERSION) | tr - _); for PYTHON in $(PYTHONS); do \
-	  PLATLIB="$(prefix)/$$("$${PYTHON}" -c 'import sysconfig, os; print(os.path.relpath(sysconfig.get_path("platlib"), sysconfig.get_config_var("prefix")))')" ; \
+	set -x; GV=$$(echo $(VERSION) | tr - _); for PYTHON in $(PYTHONS); do \
+	  PLATLIB="$(prefix)/$$("$${PYTHON}" -c 'import sysconfig, os; print(os.path.relpath(sysconfig.get_path("platlib", scheme="posix_prefix"), sysconfig.get_config_var("prefix")))')" ; \
 	  rm -rf -- "$(DESTDIR)$${PLATLIB}/gpg" \
 		"$(DESTDIR)$${PLATLIB}"/gpg-$$GV-py*.egg-info ; \
 	done

-- 
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