Skip to content

building wheel from source introduces a circular dependency on cmake #506

@dhellmann

Description

@dhellmann

When I run pip wheel to create a wheel from the source distribution, pip wants to install a cmake package.

This was previously reported as #479 with an earlier fix in #480 based on the change in scikit-build-core at scikit-build/scikit-build-core@c67339b

The scikit-build-core code at https://github.com/scikit-build/scikit-build-core/blob/main/src/scikit_build_core/build/__init__.py#L126 looks for requires.settings.wheel.cmake which translates in the pyproject.toml file to needing

[tool.scikit-build]
wheel.cmake=false

To ensure cmake is not needed for building sdists, we should also add

[tool.scikit-build]
sdist.cmake=false

The previous change added

[tool.scikit-build]
cmake.version = ""  # We are cmake, so don't request cmake

but that location isn't being checked.

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