A conan plugin for scikit-build-core
Project description
scikit-build-core-conan
A conan plugin for scikit-build-core
[!NOTE] This project is under early development. Should you encounter any problems, please feel free to open an issue.
Installation
pip install scikit-build-core-conan
To use scikit-build-core-conan
, add it to your build-system.requires
, and specify
the scikit_build_core_conan.build
builder as your build-system.build-backend
. You do not need to
specify scikit_build_core
as it will be required automatically.
Project Example
Here's a simple example on how you can use scikit-build-core-conan
in your pyproject.toml
.
[build-system]
requires = ["scikit-build-core-conan"]
build-backend = "scikit_build_core_conan.build"
[project]
name = "scikit_build_conan_simplest"
version = "0.0.1"
Configuration
scikit-build-core-conan
supports a broad range of configuration options. These options can be placed directly in
the pyproject.toml
file. They can also be passed via -C/--config-setting
in build or -C/--config-settings
in pip
. Below are the supported configuration options:
[tool.scikit-build-core-conan]
path = "."
build = "missing"
profile = "default"
options = []
settings = []
config = []
generator = "Ninja"
output_folder = "build"
Local recipes
Sometimes you may want to consume a local recipe rather than from the conan centre index. You can do this like this:
[[tool.scikit-build-core-conan.local-recipes]]
path = "path/to/recipe"
name = "recipe" # optional: package name if not specified in conanfile
version = "0.0.1" # optional: package version if not specified in conanfile
Overrides
scikit-build-core-conan
uses the same override system as scikit-build-core
. For more details, check out the
documentation of scikit-build-core
.
For example:
[[tool.scikit-build-core-conan.overrides]]
if.platform-system = "linux"
profile = "/path/to/profile"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for scikit_build_core_conan-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61f7ac66ce9b3fb1cf844958d82762a814df6c77640598c614f165139b48d1be |
|
MD5 | 206ec48f4410e27f832c6e9d21f8398b |
|
BLAKE2b-256 | e2e562f8c28a00f56ab1cfa752e2e51e6cceecca1ffd74d6ae8ecf0479855470 |
Hashes for scikit_build_core_conan-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6f282e5ebdc69c415cb02842d9cfbeb650b7f7cd555c690eafb9573d981c138 |
|
MD5 | c407f23e5fb652f647de1b868b10e7dd |
|
BLAKE2b-256 | 62edf016bae1c56393b30da54ff42d04988be49837232a9843dcbd0f41211cc3 |