gh-132921: Fix setuptools._distutils.dep_util deprecation (#132923)

Replace setuptools._distutils.dep_util with setuptools.modified in
peg_generator compile_c_extension().
This commit is contained in:
Victor Stinner 2025-04-25 13:31:19 +02:00 committed by GitHub
parent 79ba56433e
commit 1a70f66ea8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,7 +95,7 @@ def compile_c_extension(
import setuptools.logging
from setuptools import Extension, Distribution
from setuptools._distutils.dep_util import newer_group
from setuptools.modified import newer_group
from setuptools._distutils.ccompiler import new_compiler
from setuptools._distutils.sysconfig import customize_compiler