Skip to content

Commit

Permalink
Use setuptools._distutils.ccompiler.
Browse files Browse the repository at this point in the history
`distutils` is deprecated / removed.
  • Loading branch information
dhermes committed Jun 18, 2024
1 parent 755a972 commit 117a16d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/python/binary-extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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()

Expand Down

0 comments on commit 117a16d

Please sign in to comment.