Skip to content

Do not resolve program links #170

Closed
Closed
@agoose77

Description

@agoose77

pyodide-build uses an interesting system of shimming the various binaries used during a typical C++ build. It involves the creation of symlinks which point to the same executable (_pywasmcross). This executable uses sys.argv to determine which binary was being called, which consequently breaks under scikit-build-core.

Is there a need for scikit-build-core to resolve symlinks, or can we just use the result of shutil.which directly?

It's not immediately obvious to me why this is suddenly a problem after upgrading to pyodide==0.22.0; the code that generates these links has not changed recently, neither has the program resolution in scikit-build-core.

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