From 88067eda52c3ad38a10ef96fb064f96dea01a374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Wed, 23 Mar 2022 10:49:16 +0000 Subject: setup: replace distutils.dir_util.remove_tree with shutils MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The distutils.dir_util.remove_tree method has no compelling benefit over using the standard python shutils module. Signed-off-by: Daniel P. Berrangé --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index dceff34..d407532 100755 --- a/setup.py +++ b/setup.py @@ -3,7 +3,6 @@ from distutils.core import setup, Extension, Command from distutils.command.build import build from distutils.command.sdist import sdist -from distutils.dir_util import remove_tree from distutils.util import get_platform import sys @@ -298,7 +297,7 @@ class my_test(Command): class my_clean(Command): def run(self): if os.path.exists("build"): - remove_tree("build") + shutil.rmtree("build", ignore_errors=True) ################## -- cgit v1.2.1