Bug#1009417: saga: FTBFS: configure: error: cannot import Python module "distutils".

Adrian Bunk bunk at debian.org
Wed May 11 17:58:05 BST 2022


Control: tags -1 patch

On Tue, Apr 12, 2022 at 10:55:44PM +0200, Sebastiaan Couwenberg wrote:
> On 4/12/22 20:23, Lucas Nussbaum wrote:
> > > checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.10/site-packages
> > > checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib/python3.10/site-packages
> > > checking for python3.10... (cached) /usr/bin/python3
> > > checking for a version of Python >= '2.1.0'... yes
> > > checking for the distutils Python package... no
> > > configure: error: cannot import Python module "distutils".
> > > Please check your Python installation. The error was:
> > > <string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
> 
> Johan can you fix this (upstream)?
>...

The minimal fix of silencing the deprecation warning is attached.

> Kind Regards,
> 
> Bas

cu
Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: silence-distutils.patch
Type: text/x-diff
Size: 605 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20220511/313f6b59/attachment.patch>


More information about the Pkg-grass-devel mailing list