Skip to content

Document that Meson and thus meson-python require MSVC compilers to be found in $PATH #224

Closed
@dnicolodi

Description

@dnicolodi

setuptools has its magic to find the compilers but Meson does not thus this may come as a surprise especially to people like me that compiles on Windows only on CI jobs. Because many CI environments have images where the GCC compilers are available via MSYS2 or similar, Meson picks up those by default and things break in unexpected ways because the right command line arguments should be passed to these compilers to correctly build Python extensions.

One more related issue is that cibuildweels (I don't know how popular but definitely convenient way to build distributable wheels) most prominently way to build wheels in GitHub Actions is using a reusable action that does not play nicely with adding the MSVC compilers in $PATH. The solution is to use pipx run cibuildwheel directly. @henryiii can probably fill in the details.

All this should be documented somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions