diff --git a/pyproject.toml b/pyproject.toml index c45b39e..c7125a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -189,9 +189,13 @@ environment = { CMAKE_GENERATOR = "Unix Makefiles", CMAKE_BUILD_PARALLEL_LEVEL = [tool.cibuildwheel.windows] archs = ["auto64"] -test-command = "cd /d {project} && pytest python/tests -v --tb=short --basetemp=./.pytest_tmp && if exist .pytest_tmp rmdir /s /q .pytest_tmp" +test-command = "cd /d {project} && pytest python/tests -v --tb=short --basetemp=./.pytest_tmp" environment = { CMAKE_GENERATOR = "Ninja" } -config-settings = { build-dir = "build/{wheel_tag}" } +#config-settings = { build-dir = "build/{wheel_tag}" } +#&& if exist .pytest_tmp rmdir /s /q .pytest_tmp" +before-build = [ + "python -c \"import shutil, glob, os; [shutil.rmtree(p, ignore_errors=True) for p in ['build', '.pytest_tmp']];\"" +] ###################################################################################################### # CODE QUALITY & FORMATTING (Ruff)