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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | caf6fa806e7f5dc43a9d219db6fad8dff4d146f073e1291a542eb5c9187cd849 |
|
MD5 | f75bda8fadb15bb198b64f654e296b3e |
|
BLAKE2b-256 | 6c6254f49e9aac30c2156da47ed0e7b44d259d198e316d9487886880ad7dc84c |
Hashes for scikit_build_core_conan-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1f7c4ad10dbdc6ac64885ba5a9c9378724af990a570fe1848055e4581a6658a |
|
MD5 | 70205a53f4c49b237130075a49654fa7 |
|
BLAKE2b-256 | cdd6e3c1b31a553de6561df6d8f09cd151daa3b7422e5d622244f50bdd3295a5 |