Skip to content

Should scikit-build pick the right compiler on Windows automatically? #668

@ChrisBarker-NOAA

Description

@ChrisBarker-NOAA

We've recently ported a pretty complex project with C, C++ and Cython used as Python extensions to sikit-build-core.

We got it all working on Mac an Linux, but on Windows, we're having some issues.

(Using Powershell: it seems to be required by our CI)

Our first attempt resulted in it building for x86 instead of x64 -- it turns out that we had (carelessly ) used a Powershell configured for x86. And we're making progress with a generic powershell and activating the x64 compiler with: vcvars64.bat.

However -- shouldn't scikit-build (or cmake) figure that out for us, and call the right compiler, based on the Python that's doing the build? I'm a bit concerned that setting it up by hand ahead of time is a bit fragile for less experienced uses and CI systems, etc.

Or is that just that way it is?

Note: this could be related to #590 -- though that made me think that it should "just work"

-CHB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions