Skip to content

Commit c52afcb

Browse files
committed
BLD: allow to build with non-MSVC compilers on Windows
Always passing --vsenv to meson means pandas can't be built with gcc/clang on Windows. Instead add it to the cibuildwheel config so MSVC is still forced in CI when building wheels.
1 parent 2e141aa commit c52afcb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ versionfile_build = "pandas/_version.py"
143143
tag_prefix = "v"
144144
parentdir_prefix = "pandas-"
145145

146-
[tool.meson-python.args]
147-
setup = ['--vsenv'] # For Windows
148-
149146
[tool.cibuildwheel]
150147
skip = "cp36-* cp37-* cp38-* cp39-* pp* *_i686 *_ppc64le *_s390x"
151148
build-verbosity = 3
@@ -162,6 +159,7 @@ before-build = "PACKAGE_DIR={package} bash {package}/scripts/cibw_before_build.s
162159
[tool.cibuildwheel.windows]
163160
environment = {}
164161
before-build = "pip install delvewheel && bash {package}/scripts/cibw_before_build_windows.sh"
162+
config-settings = "setup-args=--vsenv"
165163
test-command = """
166164
set PANDAS_CI='1' && \
167165
python -c "import pandas as pd; \

0 commit comments

Comments
 (0)