python: Fix distcheck.
authorJustus Winter <justus@g10code.com>
Mon, 10 Apr 2017 13:20:34 +0000 (15:20 +0200)
committerJustus Winter <justus@g10code.com>
Mon, 10 Apr 2017 13:20:34 +0000 (15:20 +0200)
* 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@g10code.com>
lang/python/Makefile.am

index 90075f7..8f80a6b 100644 (file)
@@ -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