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