scikit-build-core
scikit-build-core copied to clipboard
Cannot specify search prefixes in pyproject.toml
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?
That is my bad it seems that those are things that I forgot to remove from a different PR that I was working on (can't find that anymore 🤔)
Curious what context did you want to use this in? Maybe we can add it back but with different interface.
Some of this might make it in the future. But can't you set this in your CMakeLists.txt?
I'm using:
- pixi as my task runner and venv manager
- scikit-build-core as my build backend
And I wanna be able to run uv build with my .pixi/envs/default folder as my cmake path prefix. However, uv build runs in a temp directory, so I can't use relative paths.
I thought this prop would help, but in the end I ended up just dynamically setting these in my build task:
CMAKE_PREFIX_PATH="$(pwd)/.pixi/envs/default" uv build
Feel free to close this, wasn't sure if this was docs being out of date or a bug.