From 05e28ee7e6f1a7207b65e5c4411e5e37ea265588 Mon Sep 17 00:00:00 2001 From: Lukas Burgholzer Date: Fri, 12 Aug 2022 12:19:41 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Repair=20CI=20(#112)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 96c8ea04..b5d8923c 100644 --- a/setup.py +++ b/setup.py @@ -80,7 +80,10 @@ def build_extension(self, ext): if not os.path.exists(self.build_temp): os.makedirs(self.build_temp) else: - os.remove(os.path.join(self.build_temp, "CMakeCache.txt")) + try: + os.remove(os.path.join(self.build_temp, "CMakeCache.txt")) + except OSError: + pass subprocess.check_call(["cmake", ext.sourcedir] + cmake_args, cwd=self.build_temp) subprocess.check_call( ["cmake", "--build", ".", "--target", ext.name] + build_args,