diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2022-03-23 10:49:16 +0000 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2022-04-21 12:34:06 +0100 |
commit | 88067eda52c3ad38a10ef96fb064f96dea01a374 (patch) | |
tree | d35f214f0998dfcdf36969c376bcc265a71fc7dd | |
parent | 9d4b183b4edba47a6a5967e0d15fb256cede393e (diff) | |
download | libvirt-python-88067eda52c3ad38a10ef96fb064f96dea01a374.tar.gz |
setup: replace distutils.dir_util.remove_tree with shutils
The distutils.dir_util.remove_tree method has no compelling benefit
over using the standard python shutils module.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
-rwxr-xr-x | setup.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) ################## |