From 041dc59cb291c9a708ccf35f49d9d2dc00835b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Sch=C3=B6ke?= <1560809+schoekek@users.noreply.github.com> Date: Thu, 21 May 2026 14:38:57 +0200 Subject: [PATCH] Replace distutils usage with setuptools for Python 3.12 compatibility distutils.core and distutils.extension are removed in Python 3.12. This patch replaces them with setuptools equivalents to ensure compatibility with modern Python versions and Debian unstable/testing environments. --- tests/_openmp/setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/_openmp/setup.py b/tests/_openmp/setup.py index 63273d99..aff8d64a 100644 --- a/tests/_openmp/setup.py +++ b/tests/_openmp/setup.py @@ -1,8 +1,7 @@ import os import sys -from distutils.core import setup +from setuptools import setup, Extension from Cython.Build import cythonize -from distutils.extension import Extension if sys.platform == "darwin":