From 117a16d323dbeb5b06dedbc1f11c58b17725619a Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Tue, 18 Jun 2024 15:40:32 -0500 Subject: [PATCH] Use `setuptools._distutils.ccompiler`. `distutils` is deprecated / removed. --- docs/python/binary-extension.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/python/binary-extension.rst b/docs/python/binary-extension.rst index 327974ba..a3c66fe1 100644 --- a/docs/python/binary-extension.rst +++ b/docs/python/binary-extension.rst @@ -259,12 +259,13 @@ The ``bezier._speedup`` module (``.pyd`` file) depends on this local copy of .. testsetup:: windows-libs, windows-extension, windows-dll - import distutils.ccompiler import os import pathlib import re import subprocess + import setuptools._distutils.ccompiler + import bezier import tests.utils @@ -290,7 +291,7 @@ The ``bezier._speedup`` module (``.pyd`` file) depends on this local copy of if os.name == "nt": - c_compiler = distutils.ccompiler.new_compiler() + c_compiler = setuptools._distutils.ccompiler.new_compiler() assert c_compiler.compiler_type == "msvc" c_compiler.initialize()