From 659a838e044ab2ebfcd7c0cee755d9c8596d3914 Mon Sep 17 00:00:00 2001 From: David Szotten Date: Wed, 11 Oct 2023 09:34:40 +0100 Subject: [PATCH] try distutils -> setuptools --- bin/runbench.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/runbench.py b/bin/runbench.py index c0dca20..d4c01c4 100755 --- a/bin/runbench.py +++ b/bin/runbench.py @@ -18,8 +18,8 @@ def build_lib_dirname(): - from distutils.dist import Distribution - from distutils.command.build import build + from setuptools import Distribution + from setuptools.command import build build_cmd = build(Distribution({"ext_modules": True})) build_cmd.finalize_options() return build_cmd.build_lib diff --git a/setup.py b/setup.py index 72955ee..ba27e93 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ import os import sys -from distutils.core import setup, Extension +from setuptools import setup, Extension ## Command-line argument parsing