From 5844d9e700239ad10a5956cd7789bd02360bb0fa Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Wed, 29 May 2024 15:17:58 +0200 Subject: 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 --- lang/python/doc/src/gpgme-python-howto.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lang/python/doc/src') diff --git a/lang/python/doc/src/gpgme-python-howto.org b/lang/python/doc/src/gpgme-python-howto.org index b4367872..c40e2249 100644 --- a/lang/python/doc/src/gpgme-python-howto.org +++ b/lang/python/doc/src/gpgme-python-howto.org @@ -2945,7 +2945,7 @@ Save that into a file called =keycount.pyx= and then create a =setup.py= file which contains this: #+BEGIN_SRC python -i -from distutils.core import setup +from setuptools import setup from Cython.Build import cythonize setup( -- cgit v1.2.3