diff --git a/pyproject.toml b/pyproject.toml index 38ba572c..f3991905 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,6 +55,12 @@ homepage = "https://github.com/PyWavelets/pywt" source = "https://github.com/PyWavelets/pywt" documentation = "https://pywavelets.readthedocs.io/" + +[tool.cibuildwheel.windows] +config-settings = {setup-args = ["--vsenv"]} +before-build = "bash {project}/util/cibw_before_build_win.sh" + + [tool.ruff] line-length = 88 target-version = 'py310' diff --git a/util/cibw_before_build_win.sh b/util/cibw_before_build_win.sh new file mode 100644 index 00000000..9c750d57 --- /dev/null +++ b/util/cibw_before_build_win.sh @@ -0,0 +1,4 @@ +set -xe + +# Avoid this in GHA: "ERROR: Found GNU link.exe instead of MSVC link.exe" +rm /c/Program\ Files/Git/usr/bin/link.EXE