Skip to content

Cannot specify search prefixes in pyproject.toml #1151

@straygar

Description

@straygar

Steps to reproduce

Have a pyproject.toml file, that includes the following config property:

# docs: https://github.com/scikit-build/scikit-build-core/blob/main/docs/configuration/search_paths.md
[tool.scikit-build.search]
ignore_entry_point = ["MyProject"]
prefixes = ["/path/to/prefixA", "/path/to/prefixB"]

Expected Outcome

The build runs, with CMAKE_PREFIX_PATH et.al. being set correctly

Actual Outcome

*** scikit-build-core 0.11.6 (sdist)
ERROR: Unrecognized options in pyproject.toml:
  tool.scikit-build.search.ignore_entry_point -> Did you mean: tool.scikit-build.search.site-packages, tool.scikit-build.generate, tool.scikit-build.cmake.version?
  tool.scikit-build.search.prefixes -> Did you mean: tool.scikit-build.search.site-packages, tool.scikit-build.cmake.define, tool.scikit-build.build.requires?

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