From 448c9f8da6eef9fe4e5179cbe189744dafd7b5a8 Mon Sep 17 00:00:00 2001
From: Naveen M K <naveen521kk@gmail.com>
Date: Mon, 15 Feb 2021 14:06:21 +0530
Subject: [PATCH] pass ignore_errors to shutil

---
 src/build/env.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/build/env.py b/src/build/env.py
index c0bdc2c..440d45c 100644
--- a/src/build/env.py
+++ b/src/build/env.py
@@ -80,7 +80,8 @@ class IsolatedEnvBuilder(object):
         :param exc_tb: The traceback of exception raised (if any)
         """
         if self._path is not None and os.path.exists(self._path):  # in case the user already deleted skip remove
-            shutil.rmtree(self._path)
+            # doesn't hurt to ignore error rather than failing
+            shutil.rmtree(self._path, ignore_errors=True)
 
 
 class _IsolatedEnvVenvPip(IsolatedEnv):
-- 
2.30.1.windows.1

