Skip to content

Commit 7a19532

Browse files
committed
chore(ci): adapt before-build for windows
The `rm` and `mv` commands don't work well within Windows' default shell. As a result, a separate script for Windows is required. Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent c37e839 commit 7a19532

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pyproject.toml

+8
Original file line numberDiff line numberDiff line change
@@ -315,3 +315,11 @@ assert isinstance(pact.v3.ffi.version(), str);\""""
315315
# The repair tool unfortunately did not like the bundled Ruby distributable.
316316
# TODO: Check whether delocate-wheel can be configured.
317317
repair-wheel-command = ""
318+
319+
[tool.cibuildwheel.windows]
320+
before-build = [
321+
'FOR /R src\pact\v3 %G IN (_ffi.*) DO IF NOT %~nxG == _ffi.pyi DEL /F /Q "%G"',
322+
'IF EXIST src\pact\v3\bin\ RMDIR /S /Q src\pact\v3\bin',
323+
'IF EXIST src\pact\v3\data\ RMDIR /S /Q src\pact\v3\data',
324+
'IF EXIST src\pact\v3\lib\ RMDIR /S /Q src\pact\v3\lib',
325+
]

0 commit comments

Comments
 (0)