Skip to content

BLD: allow to build with non-MSVC compilers on Windows #61404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lazka
Copy link

@lazka lazka commented May 7, 2025

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, and in various places where it is built via pip.

@lazka lazka marked this pull request as draft May 7, 2025 21:46
@lazka lazka force-pushed the meson-no-venv branch from c52afcb to 662796a Compare May 8, 2025 07:14
@lazka lazka marked this pull request as ready for review May 8, 2025 07:17
@lazka lazka requested a review from mroeschke as a code owner May 8, 2025 07:17
@lazka lazka force-pushed the meson-no-venv branch from 662796a to 0e7a0f3 Compare May 8, 2025 07:17
@lazka lazka marked this pull request as draft May 8, 2025 07:27
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, and in various places where it is built via pip.
@lazka lazka force-pushed the meson-no-venv branch from 0e7a0f3 to 5efe787 Compare May 8, 2025 07:32
@lazka lazka marked this pull request as ready for review May 8, 2025 22:05
@lazka
Copy link
Author

lazka commented May 8, 2025

I understand that this is an edge case on Windows, and that mingw is not officially supported, but numpy/scipy also don't force msvc, so I though it's worth a try proposing this.

Feedback welcome.

@WillAyd
Copy link
Member

WillAyd commented May 9, 2025

Thanks for the PR. This makes sense, although I think the challenge is more comprehensively how we document the process for users that want to build on Windows.

I have pretty limited Windows knowledge, but AFAIU we only document currently for the MSVC approach?
https://pandas.pydata.org/pandas-docs/stable/development/contributing_environment.html#step-1-install-a-c-compiler

So if we want to go this route, I think just need to make it clearer to contributors how they can opt in or out of the the different toolchains on Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants