diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 495fface..3377440a 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -34,6 +34,8 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.20.0 + env: + CIBW_CONFIG_SETTINGS_WINDOWS: 'setup-args="--vsenv"' - uses: actions/upload-artifact@v4 with: diff --git a/pyproject.toml b/pyproject.toml index a7c478a3..3264a30d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -91,8 +91,6 @@ archs = "auto64" # Disable assertion rewriting since that sometimes has issues on PyPy. before-test = "pip install -r test-requirements.txt" test-command = 'pytest --assert=plain -m "not slow" {project}/tests' -[tool.cibuildwheel.config-settings-windows] - setup-args = "--vsenv" # Use MSVC, not MinGW [tool.pytest.ini_options] markers = [