diff options
author | Justus Winter <[email protected]> | 2017-04-10 13:20:34 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-04-10 13:20:34 +0000 |
commit | db476e923415f8e458720aaafde7234b802a33ab (patch) | |
tree | ebbf33e0771f7ccb28dc79b392f74e599e7e8b5d | |
parent | python: Support alternatate libdir for tests (diff) | |
download | gpgme-db476e923415f8e458720aaafde7234b802a33ab.tar.gz gpgme-db476e923415f8e458720aaafde7234b802a33ab.zip |
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 <[email protected]>
-rw-r--r-- | lang/python/Makefile.am | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am index 90075f7a..8f80a6be 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 |