aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-05-29 15:13:30 +0000
committerIngo Klöcker <[email protected]>2024-05-29 15:13:30 +0000
commit1245b090126b8e2eeeda599b01b6b085d3607353 (patch)
treedd7dc35cec6bcfc2e5bbc00c843cd9925156d1a4 /lang
parentbuild,python: Remove support for Python 3.4, 3.5, 3.7 (diff)
downloadgpgme-1245b090126b8e2eeeda599b01b6b085d3607353.tar.gz
gpgme-1245b090126b8e2eeeda599b01b6b085d3607353.zip
build,python: Fix make distcheck for Python 3.9+
* lang/python/Makefile.am (uninstall-local): Remove installed .egg folders. -- Python 3.9+ install the module into a gpg-*.egg folder instead of in "gpg" with accompanying gpg-*.egg-info file. Moreover, Python 3.9+ normalize version numbers, e.g. the version 1.24.0_beta576 is normalized as 1.24.0b576.
Diffstat (limited to 'lang')
-rw-r--r--lang/python/Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
index 84b39c53..a6fd6396 100644
--- a/lang/python/Makefile.am
+++ b/lang/python/Makefile.am
@@ -101,8 +101,12 @@ install-exec-local:
done
uninstall-local:
- set -x; GV=$$(echo $(VERSION) | tr - _); for PYTHON in $(PYTHONS); do \
+ set -x; \
+ GV=$$(echo $(VERSION) | tr - _); \
+ normalizedGV=$$(echo $$GV | sed s/_beta/b/); \
+ 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 ; \
+ "$(DESTDIR)$${PLATLIB}"/gpg-$$GV-py*.egg-info \
+ "$(DESTDIR)$${PLATLIB}"/gpg-$$normalizedGV-py*.egg ; \
done