From 68c91f5871fb5dff294254eb0ab99ce465f1b226 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Thu, 23 Dec 2021 13:25:39 +0800 Subject: [PATCH] stop using distutils sysconfig has been its own module since python 3.2 and setuptools does all we need for compiling --- setup.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index afda7c24..96d4b321 100644 --- a/setup.py +++ b/setup.py @@ -23,16 +23,12 @@ import shutil import subprocess import sys -from distutils.sysconfig import get_config_vars +from sysconfig import get_config_vars from setuptools import Distribution, setup +from setuptools.command.build_clib import build_clib as _build_clib from setuptools.command.build_ext import build_ext as _build_ext -try: - from setuptools.command.build_clib import build_clib as _build_clib -except ImportError: - from distutils.command.build_clib import build_clib as _build_clib - requirements = [] setup_requirements = ["setuptools"]