Benjamin Greiner
b9e59c928f
* Support for setuptools 74 in #1116 * iOS and Android support by @FeodorFitsner in #1101 * Fix for distutils change in #1103 * Remove test directives by @s-t-e-v-e-n-k in #1108 - Drop patches * support-setuptools-72-distutils.patch * support-setuptools-72-test-directives.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=50
24 lines
969 B
Diff
24 lines
969 B
Diff
From 56ad12fe568675957e87c88a7b9f318b52b07fc4 Mon Sep 17 00:00:00 2001
|
|
From: Henry Schreiner <henryschreineriii@gmail.com>
|
|
Date: Tue, 2 Jul 2024 08:23:03 -0400
|
|
Subject: [PATCH] tests: fix for distutils change
|
|
|
|
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
|
|
---
|
|
tests/__init__.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/__init__.py b/tests/__init__.py
|
|
index 00d27289..4f3c9543 100644
|
|
--- a/tests/__init__.py
|
|
+++ b/tests/__init__.py
|
|
@@ -215,7 +215,7 @@ def execute_setup_py(project_dir, setup_args, disable_languages_test=False):
|
|
"""
|
|
|
|
# See https://stackoverflow.com/questions/9160227/dir-util-copy-tree-fails-after-shutil-rmtree
|
|
- distutils.dir_util._path_created = {} # type: ignore[attr-defined]
|
|
+ distutils.dir_util._path_created.clear() # type: ignore[attr-defined]
|
|
|
|
# Clear _PYTHON_HOST_PLATFORM to ensure value sets in skbuild.setuptools_wrap.setup() does not
|
|
# influence other tests.
|