aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorBen Greiner <[email protected]>2024-05-29 13:17:58 +0000
committerIngo Klöcker <[email protected]>2024-05-29 15:04:10 +0000
commit5844d9e700239ad10a5956cd7789bd02360bb0fa (patch)
treef1fb2aa4bcb63fe19c99562df4fc4d9775dde72a /m4
parenttests: Add new files to distribution (diff)
downloadgpgme-5844d9e700239ad10a5956cd7789bd02360bb0fa.tar.gz
gpgme-5844d9e700239ad10a5956cd7789bd02360bb0fa.zip
build,python: Build Python bindings without distutils
* m4/python.m4: Add python3.12 and 3.11 as valid interpreters, remove EOL 3.4, 3.5, 3.7 (keep 3.6 because some distributions still ship and maintain it). * lang/python/Makefile.am (clean-local): Remove dist and gpg.egg-info created by Python 3.9+ on make install. * lang/python/setup.py.in: switch from distutils to setuptools where possible, remove obsolete and deprecated -py3 option of swig, add classifiers up to 3.12, remove 3.4, 3.5, 3.7. * lang/python/doc/src/gpgme-python-howto.org: replace distutils with setuptools * lang/python/examples/howto/advanced/cython/setup.py: replace distutils with setuptools -- This fixes building the Python bindings for Python 3.12 where distutils has been removed. Based on D545
Diffstat (limited to 'm4')
-rw-r--r--m4/python.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/python.m4 b/m4/python.m4
index 4b9483c0..a9ace09b 100644
--- a/m4/python.m4
+++ b/m4/python.m4
@@ -36,12 +36,12 @@
# numbers and dots only.
AC_DEFUN([AM_PATH_PYTHON],
[
- dnl Find a Python interpreter. Python versions prior to 2.7 are not
- dnl supported. Python 3.0 through to Python 3.3 are also not supported.
+ dnl Find a Python interpreter. Python versions prior to 3.8 are
+ dnl end-of-life and not supported, with the exception of 2.7 and 3.6.
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
[python2 python2.7 dnl
python dnl
- python3 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4
+ python3 python3.12 python3.11 python3.10 python3.9 python3.8 python3.6
])
AC_ARG_VAR([PYTHON], [the Python interpreter])