From b0e9f12f2fe1f44250a322fda1a68f91c4f003a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Wed, 23 Mar 2022 11:16:00 +0000 Subject: setup: switch from distutils to setuptools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The distutils package is deprecated and targetted for deletion in Python 3.12, so we need to switch to setuptools. Thanks to all the preceeding changes this is no more difficult than changing the import statements. Closes https://gitlab.com/libvirt/libvirt-python/-/issues/1 Signed-off-by: Daniel P. Berrangé --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index bfbe037..f48c5ab 100755 --- a/setup.py +++ b/setup.py @@ -1,9 +1,9 @@ #!/usr/bin/env python3 -from distutils.core import setup, Extension, Command -from distutils.command.build_ext import build_ext -from distutils.command.build_py import build_py -from distutils.command.sdist import sdist +from setuptools import setup, Extension, Command +from setuptools.command.build_ext import build_ext +from setuptools.command.build_py import build_py +from setuptools.command.sdist import sdist import glob import sys -- cgit v1.2.1