Name | scikit-build-core JSON |
Version |
0.10.7
JSON |
| download |
home_page | None |
Summary | Build backend for CMake based projects |
upload_time | 2024-09-20 20:54:15 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# scikit-build-core
[![Documentation Status][rtd-badge]][rtd-link]
[![GitHub Discussion][github-discussions-badge]][github-discussions-link]
[![Discord][discord-badge]][discord-link]
[![Actions Status][actions-badge]][actions-link]
[![codecov][codecov-badge]][codecov-link]
[![PyPI version][pypi-version]][pypi-link]
[![Conda-Forge][conda-badge]][conda-link]
[![PyPI platforms][pypi-platforms]][pypi-link]
[![Downloads][download-badge]][download-link]
> [!NOTE]
>
> We have a public Scikit-build community meeting every month!
> [Join us on Google Meet](https://meet.google.com/dvx-jkai-xhq) on the third
> Friday of every month at 12:00 PM EST. We also have a developer's meeting on
> the first Friday of every month at the same time. Our past meeting minutes are
> [available here](https://github.com/orgs/scikit-build/discussions/categories/community-meeting-notes).
<!-- SPHINX-START -->
Scikit-build-core is a build backend for Python that uses CMake to build
extension modules. It has a simple yet powerful static configuration system in
pyproject.toml, and supports almost unlimited flexibility via CMake. It was
initially developed to support the demanding needs of scientific users, but can
build any sort of package that uses CMake.
Scikit-build-core is a ground-up rewrite of the classic Scikit-build. The key
features of scikit-build classic (which is setuptools based) are also present
here:
- Great support for or by most OSs, compilers, IDEs, and libraries
- Support for C++ features and other languages like Fortran
- Support for multithreaded builds
- Simple CMakeFiles.txt instead of up to thousands of lines of fragile
setuptools/distutils code
- Cross-compile support for Apple Silicon and Windows ARM
Scikit-build-core was built using Python packaging standards developed after
scikit-build (classic) was written. Using it directly provides the following
features over classic Scikit-build:
- Better warnings, errors, and logging
- No warning about unused variables
- Automatically adds Ninja and/or CMake only as required
- No dependency on setuptools, distutils, or wheel
- Powerful config system, including config options support
- Automatic inclusion of site-packages in `CMAKE_PREFIX_PATH`
- FindPython is backported if running on CMake < 3.26.1 (configurable), supports
PyPY SOABI & Limited API / Stable ABI
- Limited API / Stable ABI and pythonless tags supported via config option
- No slow generator search, ninja/make or MSVC used by default, respects
`CMAKE_GENERATOR`
- SDists are reproducible by default (UNIX, Python 3.9+, uncompressed comparison
recommended)
- Support for caching between builds (opt-in by setting `build-dir`)
- Support for writing out to extra wheel folders (scripts, headers, data)
- Support for selecting install components and build targets
- Dedicated entrypoints for module and prefix directories
- Several integrated dynamic metadata plugins (proposing standardized support
soon)
- Experimental editable mode support, with optional experimental auto rebuilds
on import and optional in-place mode
- Supports WebAssembly (Emscripten/[Pyodide](https://pyodide.org)).
- Supports [free-threaded Python 3.13](https://py-free-threading.github.io).
The following limitations are present compared to classic scikit-build:
- The minimum supported CMake is 3.15
- The minimum supported Python is 3.7
Some known missing features that will be developed soon:
- Wheels are not fully reproducible yet (nor are they in most others systems,
including setuptools)
- Several editable mode caveats (mentioned in the docs).
Other backends are also planned:
- Setuptools integration highly experimental
- Hatchling plugin highly experimental
The recommended interface is the native pyproject builder. There is also a WIP
setuptools-based interface that is being developed to provide a transition path
for classic scikit-build, and a WIP Hatchling plugin. Both might be moved to
standalone packages in the future.
> [!WARNING]
>
> Only the pyproject-based builder should be used; the setuptools backend is
> experimental and likely to move to a separate package before being declared
> stable, and internal API is still being solidified. A future version of this
> package will support creating new build extensions.
## Example
To use scikit-build-core, add it to your `build-system.requires`, and specify
the `scikit_build_core.build` builder as your `build-system.build-backend`. You
do _not_ need to specify `cmake` or `ninja`; scikit-build-core will require them
automatically if the system versions are not sufficient.
```toml
[build-system]
requires = ["scikit-build-core"]
build-backend = "scikit_build_core.build"
[project]
name = "scikit_build_simplest"
version = "0.0.1"
```
You can (and should) specify the rest of the entries in `project`, but these are
the minimum to get started.
An example `CMakeLists.txt`:
```cmake
cmake_minimum_required(VERSION 3.15...3.30)
project(${SKBUILD_PROJECT_NAME} LANGUAGES C)
find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
Python_add_library(_module MODULE src/module.c WITH_SOABI)
install(TARGETS _module DESTINATION ${SKBUILD_PROJECT_NAME})
```
Scikit-build-core will backport FindPython from CMake 3.26.1 to older versions
of Python, and will handle PyPy for you if you are building from PyPy. You will
need to install everything you want into the full final path inside site-modules
(so you will usually prefix everything by the package name).
More examples are in the
[tests/packages](https://github.com/scikit-build/scikit-build-core/tree/main/tests/packages).
## Configuration
All configuration options can be placed in `pyproject.toml`, passed via
`-C`/`--config-setting` in build or `-C`/`--config-settings` in `pip` , or set
as environment variables. `tool.scikit-build` is used in toml, `skbuild.` for
`-C` options, or `SKBUILD_*` for environment variables. The defaults are listed
below:
<!-- [[[cog
from scikit_build_core.settings.skbuild_docs import mk_skbuild_docs
print("\n```toml\n[tool.scikit-build]")
print(mk_skbuild_docs())
print("```\n")
]]] -->
```toml
[tool.scikit-build]
# The versions of CMake to allow. If CMake is not present on the system or does
# not pass this specifier, it will be downloaded via PyPI if possible. An empty
# string will disable this check. The default on 0.10+ is "CMakeLists.txt",
# which will read it from the project's CMakeLists.txt file, or ">=3.15" if
# unreadable or <0.10.
cmake.version = ""
# A list of args to pass to CMake when configuring the project. Setting this in
# config or envvar will override toml. See also ``cmake.define``.
cmake.args = []
# A table of defines to pass to CMake when configuring the project. Additive.
cmake.define = {}
# DEPRECATED in 0.10, use build.verbose instead.
cmake.verbose = ""
# The build type to use when building the project. Valid options are: "Debug",
# "Release", "RelWithDebInfo", "MinSizeRel", "", etc.
cmake.build-type = "Release"
# The source directory to use when building the project. Currently only affects
# the native builder (not the setuptools plugin).
cmake.source-dir = "."
# DEPRECATED in 0.10; use build.targets instead.
cmake.targets = ""
# The versions of Ninja to allow. If Ninja is not present on the system or does
# not pass this specifier, it will be downloaded via PyPI if possible. An empty
# string will disable this check.
ninja.version = ">=1.5"
# If Ninja is not present on the system or is older than required, it will be
# downloaded via PyPI if this is false.
ninja.make-fallback = true
# The logging level to display, "DEBUG", "INFO", "WARNING", and "ERROR" are
# possible options.
logging.level = "WARNING"
# Files to include in the SDist even if they are skipped by default. Supports
# gitignore syntax.
sdist.include = []
# Files to exclude from the SDist even if they are included by default. Supports
# gitignore syntax.
sdist.exclude = []
# If set to True, try to build a reproducible distribution (Unix and Python 3.9+
# recommended). ``SOURCE_DATE_EPOCH`` will be used for timestamps, or a fixed
# value if not set.
sdist.reproducible = true
# If set to True, CMake will be run before building the SDist.
sdist.cmake = false
# A list of packages to auto-copy into the wheel. If this is not set, it will
# default to the first of ``src/<package>``, ``python/<package>``, or
# ``<package>`` if they exist. The prefix(s) will be stripped from the package
# name inside the wheel. If a dict, provides a mapping of package name to source
# directory.
wheel.packages = ["src/<package>", "python/<package>", "<package>"]
# The Python tags. The default (empty string) will use the default Python
# version. You can also set this to "cp37" to enable the CPython 3.7+ Stable ABI
# / Limited API (only on CPython and if the version is sufficient, otherwise
# this has no effect). Or you can set it to "py3" or "py2.py3" to ignore Python
# ABI compatibility. The ABI tag is inferred from this tag.
wheel.py-api = ""
# Fill out extra tags that are not required. This adds "x86_64" and "arm64" to
# the list of platforms when "universal2" is used, which helps older Pip's
# (before 21.0.1) find the correct wheel.
wheel.expand-macos-universal-tags = false
# The install directory for the wheel. This is relative to the platlib root. You
# might set this to the package name. The original dir is still at
# SKBUILD_PLATLIB_DIR (also SKBUILD_DATA_DIR, etc. are available). EXPERIMENTAL:
# An absolute path will be one level higher than the platlib root, giving access
# to "/platlib", "/data", "/headers", and "/scripts".
wheel.install-dir = ""
# A list of license files to include in the wheel. Supports glob patterns.
wheel.license-files = ["LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*"]
# If set to True (the default), CMake will be run before building the wheel.
wheel.cmake = true
# Target the platlib or the purelib. If not set, the default is to target the
# platlib if wheel.cmake is true, and the purelib otherwise.
wheel.platlib = ""
# A set of patterns to exclude from the wheel. This is additive to the SDist
# exclude patterns. This applies to the final paths in the wheel, and can
# exclude files from CMake output as well. Editable installs may not respect
# this exclusion.
wheel.exclude = []
# The build tag to use for the wheel. If empty, no build tag is used.
wheel.build-tag = ""
# If CMake is less than this value, backport a copy of FindPython. Set to 0
# disable this, or the empty string.
backport.find-python = "3.26.1"
# Select the editable mode to use. Can be "redirect" (default) or "inplace".
editable.mode = "redirect"
# Turn on verbose output for the editable mode rebuilds.
editable.verbose = true
# Rebuild the project when the package is imported. The build-directory must be
# set.
editable.rebuild = false
# Extra args to pass directly to the builder in the build step.
build.tool-args = []
# The build targets to use when building the project. Empty builds the default
# target.
build.targets = []
# Verbose printout when building.
build.verbose = false
# The components to install. If empty, all default components are installed.
install.components = []
# Whether to strip the binaries. True for release builds on scikit-build-core
# 0.5+ (0.5-0.10.5 also incorrectly set this for debug builds).
install.strip = true
# The path (relative to platlib) for the file to generate.
generate[].path = ""
# The template to use for the file. This includes string.Template style
# placeholders for all the metadata. If empty, a template-path must be set.
generate[].template = ""
# The path to the template file. If empty, a template must be set.
generate[].template-path = ""
# The place to put the generated file. The "build" directory is useful for CMake
# files, and the "install" directory is useful for Python files, usually. You
# can also write directly to the "source" directory, will overwrite existing
# files & remember to gitignore the file.
generate[].location = "install"
# A message to print after a build failure.
messages.after-failure = ""
# A message to print after a successful build.
messages.after-success = ""
# List dynamic metadata fields and hook locations in this table.
metadata = {}
# Strictly check all config options. If False, warnings will be printed for
# unknown options. If True, an error will be raised.
strict-config = true
# Enable early previews of features not finalized yet.
experimental = false
# If set, this will provide a method for backward compatibility.
minimum-version = "0.10" # current version
# The build directory. Defaults to a temporary directory, but can be set.
build-dir = ""
# Immediately fail the build. This is only useful in overrides.
fail = false
```
<!-- [[[end]]] -->
Most CMake environment variables should be supported, and `CMAKE_ARGS` can be
used to set extra CMake args. `ARCHFLAGS` is used to specify macOS universal2 or
cross-compiles, just like setuptools.
You can also specify `[[tool.scikit-build.overrides]]` to customize values for
different systems. See the docs for details.
## Other projects for building
Scikit-build-core is a binary build backend. There are also other binary build
backends:
- [py-build-cmake][]: A different attempt at a standards compliant builder for
CMake. Strong focus on cross-compilation. Uses Flit internals.
- [cmeel][]: A different attempt at a standards compliant builder for CMake.
Focus on building an ecosystem around a special unimportable folder in
site-packages (similar to scikit-build's usage of `cmake.*` entrypoints, but
folder-based).
- [meson-python][]: A meson-based build backend; has some maintainer overlap
with scikit-build-core.
- [maturin][]: A build backend for Rust projects, using Cargo.
- [enscons][]: A SCons based backend, not very actively developed (but it
predates all the others in modern standard support!)
If you don't need a binary build, you don't need to use a binary build backend!
There are some very good Python build backends; we recommend [hatchling][] as a
good balance between good defaults for beginners and good support for advanced
use cases. This is the tool scikit-build-core itself uses.
## Acknowledgements
Support for this work was provided by NSF grant [OAC-2209877][]. Any opinions,
findings, and conclusions or recommendations expressed in this material are
those of the author(s) and do not necessarily reflect the views of the National
Science Foundation.
<!-- prettier-ignore-start -->
[OAC-2209877]: https://www.nsf.gov/awardsearch/showAward?AWD_ID=2209877&HistoricalAwards=false
[actions-badge]: https://github.com/scikit-build/scikit-build-core/workflows/CI/badge.svg
[actions-link]: https://github.com/scikit-build/scikit-build-core/actions
[cmeel]: https://github.com/cmake-wheel/cmeel
[codecov-badge]: https://codecov.io/gh/scikit-build/scikit-build-core/branch/main/graph/badge.svg?token=ZLbQzIvyG8
[codecov-link]: https://codecov.io/gh/scikit-build/scikit-build-core
[conda-badge]: https://img.shields.io/conda/vn/conda-forge/scikit-build-core
[conda-link]: https://github.com/conda-forge/scikit-build-core-feedstock
[discord-badge]: https://img.shields.io/discord/803025117553754132?label=Discord%20chat%20%23scikit-build
[discord-link]: https://discord.gg/pypa
[download-badge]: https://static.pepy.tech/badge/scikit-build-core/month
[download-link]: https://pepy.tech/project/scikit-build-core
[enscons]: https://pypi.org/project/enscons
[github-discussions-badge]: https://img.shields.io/static/v1?label=Discussions&message=Ask&color=blue&logo=github
[github-discussions-link]: https://github.com/orgs/scikit-build/discussions
[hatchling]: https://hatch.pypa.io/latest
[maturin]: https://www.maturin.rs
[meson-python]: https://meson-python.readthedocs.io
[py-build-cmake]: https://tttapa.github.io/py-build-cmake
[pypi-link]: https://pypi.org/project/scikit-build-core/
[pypi-platforms]: https://img.shields.io/pypi/pyversions/scikit-build-core
[pypi-version]: https://badge.fury.io/py/scikit-build-core.svg
[rtd-badge]: https://readthedocs.org/projects/scikit-build-core/badge/?version=latest
[rtd-link]: https://scikit-build-core.readthedocs.io/en/latest/?badge=latest
<!-- prettier-ignore-end -->
Raw data
{
"_id": null,
"home_page": null,
"name": "scikit-build-core",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Henry Schreiner <henryfs@princeton.edu>",
"download_url": "https://files.pythonhosted.org/packages/34/75/ad5664c8050bbbea46a5f2b6a3dfbc6e6cf284826c0eee0a12f861364b3f/scikit_build_core-0.10.7.tar.gz",
"platform": null,
"description": "# scikit-build-core\n\n[![Documentation Status][rtd-badge]][rtd-link]\n[![GitHub Discussion][github-discussions-badge]][github-discussions-link]\n[![Discord][discord-badge]][discord-link]\n\n[![Actions Status][actions-badge]][actions-link]\n[![codecov][codecov-badge]][codecov-link]\n\n[![PyPI version][pypi-version]][pypi-link]\n[![Conda-Forge][conda-badge]][conda-link]\n[![PyPI platforms][pypi-platforms]][pypi-link]\n[![Downloads][download-badge]][download-link]\n\n> [!NOTE]\n>\n> We have a public Scikit-build community meeting every month!\n> [Join us on Google Meet](https://meet.google.com/dvx-jkai-xhq) on the third\n> Friday of every month at 12:00 PM EST. We also have a developer's meeting on\n> the first Friday of every month at the same time. Our past meeting minutes are\n> [available here](https://github.com/orgs/scikit-build/discussions/categories/community-meeting-notes).\n\n<!-- SPHINX-START -->\n\nScikit-build-core is a build backend for Python that uses CMake to build\nextension modules. It has a simple yet powerful static configuration system in\npyproject.toml, and supports almost unlimited flexibility via CMake. It was\ninitially developed to support the demanding needs of scientific users, but can\nbuild any sort of package that uses CMake.\n\nScikit-build-core is a ground-up rewrite of the classic Scikit-build. The key\nfeatures of scikit-build classic (which is setuptools based) are also present\nhere:\n\n- Great support for or by most OSs, compilers, IDEs, and libraries\n- Support for C++ features and other languages like Fortran\n- Support for multithreaded builds\n- Simple CMakeFiles.txt instead of up to thousands of lines of fragile\n setuptools/distutils code\n- Cross-compile support for Apple Silicon and Windows ARM\n\nScikit-build-core was built using Python packaging standards developed after\nscikit-build (classic) was written. Using it directly provides the following\nfeatures over classic Scikit-build:\n\n- Better warnings, errors, and logging\n- No warning about unused variables\n- Automatically adds Ninja and/or CMake only as required\n- No dependency on setuptools, distutils, or wheel\n- Powerful config system, including config options support\n- Automatic inclusion of site-packages in `CMAKE_PREFIX_PATH`\n- FindPython is backported if running on CMake < 3.26.1 (configurable), supports\n PyPY SOABI & Limited API / Stable ABI\n- Limited API / Stable ABI and pythonless tags supported via config option\n- No slow generator search, ninja/make or MSVC used by default, respects\n `CMAKE_GENERATOR`\n- SDists are reproducible by default (UNIX, Python 3.9+, uncompressed comparison\n recommended)\n- Support for caching between builds (opt-in by setting `build-dir`)\n- Support for writing out to extra wheel folders (scripts, headers, data)\n- Support for selecting install components and build targets\n- Dedicated entrypoints for module and prefix directories\n- Several integrated dynamic metadata plugins (proposing standardized support\n soon)\n- Experimental editable mode support, with optional experimental auto rebuilds\n on import and optional in-place mode\n- Supports WebAssembly (Emscripten/[Pyodide](https://pyodide.org)).\n- Supports [free-threaded Python 3.13](https://py-free-threading.github.io).\n\nThe following limitations are present compared to classic scikit-build:\n\n- The minimum supported CMake is 3.15\n- The minimum supported Python is 3.7\n\nSome known missing features that will be developed soon:\n\n- Wheels are not fully reproducible yet (nor are they in most others systems,\n including setuptools)\n- Several editable mode caveats (mentioned in the docs).\n\nOther backends are also planned:\n\n- Setuptools integration highly experimental\n- Hatchling plugin highly experimental\n\nThe recommended interface is the native pyproject builder. There is also a WIP\nsetuptools-based interface that is being developed to provide a transition path\nfor classic scikit-build, and a WIP Hatchling plugin. Both might be moved to\nstandalone packages in the future.\n\n> [!WARNING]\n>\n> Only the pyproject-based builder should be used; the setuptools backend is\n> experimental and likely to move to a separate package before being declared\n> stable, and internal API is still being solidified. A future version of this\n> package will support creating new build extensions.\n\n## Example\n\nTo use scikit-build-core, add it to your `build-system.requires`, and specify\nthe `scikit_build_core.build` builder as your `build-system.build-backend`. You\ndo _not_ need to specify `cmake` or `ninja`; scikit-build-core will require them\nautomatically if the system versions are not sufficient.\n\n```toml\n[build-system]\nrequires = [\"scikit-build-core\"]\nbuild-backend = \"scikit_build_core.build\"\n\n[project]\nname = \"scikit_build_simplest\"\nversion = \"0.0.1\"\n```\n\nYou can (and should) specify the rest of the entries in `project`, but these are\nthe minimum to get started.\n\nAn example `CMakeLists.txt`:\n\n```cmake\ncmake_minimum_required(VERSION 3.15...3.30)\nproject(${SKBUILD_PROJECT_NAME} LANGUAGES C)\n\nfind_package(Python COMPONENTS Interpreter Development.Module REQUIRED)\n\nPython_add_library(_module MODULE src/module.c WITH_SOABI)\ninstall(TARGETS _module DESTINATION ${SKBUILD_PROJECT_NAME})\n```\n\nScikit-build-core will backport FindPython from CMake 3.26.1 to older versions\nof Python, and will handle PyPy for you if you are building from PyPy. You will\nneed to install everything you want into the full final path inside site-modules\n(so you will usually prefix everything by the package name).\n\nMore examples are in the\n[tests/packages](https://github.com/scikit-build/scikit-build-core/tree/main/tests/packages).\n\n## Configuration\n\nAll configuration options can be placed in `pyproject.toml`, passed via\n`-C`/`--config-setting` in build or `-C`/`--config-settings` in `pip` , or set\nas environment variables. `tool.scikit-build` is used in toml, `skbuild.` for\n`-C` options, or `SKBUILD_*` for environment variables. The defaults are listed\nbelow:\n\n<!-- [[[cog\nfrom scikit_build_core.settings.skbuild_docs import mk_skbuild_docs\n\nprint(\"\\n```toml\\n[tool.scikit-build]\")\nprint(mk_skbuild_docs())\nprint(\"```\\n\")\n]]] -->\n\n```toml\n[tool.scikit-build]\n# The versions of CMake to allow. If CMake is not present on the system or does\n# not pass this specifier, it will be downloaded via PyPI if possible. An empty\n# string will disable this check. The default on 0.10+ is \"CMakeLists.txt\",\n# which will read it from the project's CMakeLists.txt file, or \">=3.15\" if\n# unreadable or <0.10.\ncmake.version = \"\"\n\n# A list of args to pass to CMake when configuring the project. Setting this in\n# config or envvar will override toml. See also ``cmake.define``.\ncmake.args = []\n\n# A table of defines to pass to CMake when configuring the project. Additive.\ncmake.define = {}\n\n# DEPRECATED in 0.10, use build.verbose instead.\ncmake.verbose = \"\"\n\n# The build type to use when building the project. Valid options are: \"Debug\",\n# \"Release\", \"RelWithDebInfo\", \"MinSizeRel\", \"\", etc.\ncmake.build-type = \"Release\"\n\n# The source directory to use when building the project. Currently only affects\n# the native builder (not the setuptools plugin).\ncmake.source-dir = \".\"\n\n# DEPRECATED in 0.10; use build.targets instead.\ncmake.targets = \"\"\n\n# The versions of Ninja to allow. If Ninja is not present on the system or does\n# not pass this specifier, it will be downloaded via PyPI if possible. An empty\n# string will disable this check.\nninja.version = \">=1.5\"\n\n# If Ninja is not present on the system or is older than required, it will be\n# downloaded via PyPI if this is false.\nninja.make-fallback = true\n\n# The logging level to display, \"DEBUG\", \"INFO\", \"WARNING\", and \"ERROR\" are\n# possible options.\nlogging.level = \"WARNING\"\n\n# Files to include in the SDist even if they are skipped by default. Supports\n# gitignore syntax.\nsdist.include = []\n\n# Files to exclude from the SDist even if they are included by default. Supports\n# gitignore syntax.\nsdist.exclude = []\n\n# If set to True, try to build a reproducible distribution (Unix and Python 3.9+\n# recommended). ``SOURCE_DATE_EPOCH`` will be used for timestamps, or a fixed\n# value if not set.\nsdist.reproducible = true\n\n# If set to True, CMake will be run before building the SDist.\nsdist.cmake = false\n\n# A list of packages to auto-copy into the wheel. If this is not set, it will\n# default to the first of ``src/<package>``, ``python/<package>``, or\n# ``<package>`` if they exist. The prefix(s) will be stripped from the package\n# name inside the wheel. If a dict, provides a mapping of package name to source\n# directory.\nwheel.packages = [\"src/<package>\", \"python/<package>\", \"<package>\"]\n\n# The Python tags. The default (empty string) will use the default Python\n# version. You can also set this to \"cp37\" to enable the CPython 3.7+ Stable ABI\n# / Limited API (only on CPython and if the version is sufficient, otherwise\n# this has no effect). Or you can set it to \"py3\" or \"py2.py3\" to ignore Python\n# ABI compatibility. The ABI tag is inferred from this tag.\nwheel.py-api = \"\"\n\n# Fill out extra tags that are not required. This adds \"x86_64\" and \"arm64\" to\n# the list of platforms when \"universal2\" is used, which helps older Pip's\n# (before 21.0.1) find the correct wheel.\nwheel.expand-macos-universal-tags = false\n\n# The install directory for the wheel. This is relative to the platlib root. You\n# might set this to the package name. The original dir is still at\n# SKBUILD_PLATLIB_DIR (also SKBUILD_DATA_DIR, etc. are available). EXPERIMENTAL:\n# An absolute path will be one level higher than the platlib root, giving access\n# to \"/platlib\", \"/data\", \"/headers\", and \"/scripts\".\nwheel.install-dir = \"\"\n\n# A list of license files to include in the wheel. Supports glob patterns.\nwheel.license-files = [\"LICEN[CS]E*\", \"COPYING*\", \"NOTICE*\", \"AUTHORS*\"]\n\n# If set to True (the default), CMake will be run before building the wheel.\nwheel.cmake = true\n\n# Target the platlib or the purelib. If not set, the default is to target the\n# platlib if wheel.cmake is true, and the purelib otherwise.\nwheel.platlib = \"\"\n\n# A set of patterns to exclude from the wheel. This is additive to the SDist\n# exclude patterns. This applies to the final paths in the wheel, and can\n# exclude files from CMake output as well. Editable installs may not respect\n# this exclusion.\nwheel.exclude = []\n\n# The build tag to use for the wheel. If empty, no build tag is used.\nwheel.build-tag = \"\"\n\n# If CMake is less than this value, backport a copy of FindPython. Set to 0\n# disable this, or the empty string.\nbackport.find-python = \"3.26.1\"\n\n# Select the editable mode to use. Can be \"redirect\" (default) or \"inplace\".\neditable.mode = \"redirect\"\n\n# Turn on verbose output for the editable mode rebuilds.\neditable.verbose = true\n\n# Rebuild the project when the package is imported. The build-directory must be\n# set.\neditable.rebuild = false\n\n# Extra args to pass directly to the builder in the build step.\nbuild.tool-args = []\n\n# The build targets to use when building the project. Empty builds the default\n# target.\nbuild.targets = []\n\n# Verbose printout when building.\nbuild.verbose = false\n\n# The components to install. If empty, all default components are installed.\ninstall.components = []\n\n# Whether to strip the binaries. True for release builds on scikit-build-core\n# 0.5+ (0.5-0.10.5 also incorrectly set this for debug builds).\ninstall.strip = true\n\n# The path (relative to platlib) for the file to generate.\ngenerate[].path = \"\"\n\n# The template to use for the file. This includes string.Template style\n# placeholders for all the metadata. If empty, a template-path must be set.\ngenerate[].template = \"\"\n\n# The path to the template file. If empty, a template must be set.\ngenerate[].template-path = \"\"\n\n# The place to put the generated file. The \"build\" directory is useful for CMake\n# files, and the \"install\" directory is useful for Python files, usually. You\n# can also write directly to the \"source\" directory, will overwrite existing\n# files & remember to gitignore the file.\ngenerate[].location = \"install\"\n\n# A message to print after a build failure.\nmessages.after-failure = \"\"\n\n# A message to print after a successful build.\nmessages.after-success = \"\"\n\n# List dynamic metadata fields and hook locations in this table.\nmetadata = {}\n\n# Strictly check all config options. If False, warnings will be printed for\n# unknown options. If True, an error will be raised.\nstrict-config = true\n\n# Enable early previews of features not finalized yet.\nexperimental = false\n\n# If set, this will provide a method for backward compatibility.\nminimum-version = \"0.10\" # current version\n\n# The build directory. Defaults to a temporary directory, but can be set.\nbuild-dir = \"\"\n\n# Immediately fail the build. This is only useful in overrides.\nfail = false\n\n```\n\n<!-- [[[end]]] -->\n\nMost CMake environment variables should be supported, and `CMAKE_ARGS` can be\nused to set extra CMake args. `ARCHFLAGS` is used to specify macOS universal2 or\ncross-compiles, just like setuptools.\n\nYou can also specify `[[tool.scikit-build.overrides]]` to customize values for\ndifferent systems. See the docs for details.\n\n## Other projects for building\n\nScikit-build-core is a binary build backend. There are also other binary build\nbackends:\n\n- [py-build-cmake][]: A different attempt at a standards compliant builder for\n CMake. Strong focus on cross-compilation. Uses Flit internals.\n- [cmeel][]: A different attempt at a standards compliant builder for CMake.\n Focus on building an ecosystem around a special unimportable folder in\n site-packages (similar to scikit-build's usage of `cmake.*` entrypoints, but\n folder-based).\n- [meson-python][]: A meson-based build backend; has some maintainer overlap\n with scikit-build-core.\n- [maturin][]: A build backend for Rust projects, using Cargo.\n- [enscons][]: A SCons based backend, not very actively developed (but it\n predates all the others in modern standard support!)\n\nIf you don't need a binary build, you don't need to use a binary build backend!\nThere are some very good Python build backends; we recommend [hatchling][] as a\ngood balance between good defaults for beginners and good support for advanced\nuse cases. This is the tool scikit-build-core itself uses.\n\n## Acknowledgements\n\nSupport for this work was provided by NSF grant [OAC-2209877][]. Any opinions,\nfindings, and conclusions or recommendations expressed in this material are\nthose of the author(s) and do not necessarily reflect the views of the National\nScience Foundation.\n\n<!-- prettier-ignore-start -->\n[OAC-2209877]: https://www.nsf.gov/awardsearch/showAward?AWD_ID=2209877&HistoricalAwards=false\n[actions-badge]: https://github.com/scikit-build/scikit-build-core/workflows/CI/badge.svg\n[actions-link]: https://github.com/scikit-build/scikit-build-core/actions\n[cmeel]: https://github.com/cmake-wheel/cmeel\n[codecov-badge]: https://codecov.io/gh/scikit-build/scikit-build-core/branch/main/graph/badge.svg?token=ZLbQzIvyG8\n[codecov-link]: https://codecov.io/gh/scikit-build/scikit-build-core\n[conda-badge]: https://img.shields.io/conda/vn/conda-forge/scikit-build-core\n[conda-link]: https://github.com/conda-forge/scikit-build-core-feedstock\n[discord-badge]: https://img.shields.io/discord/803025117553754132?label=Discord%20chat%20%23scikit-build\n[discord-link]: https://discord.gg/pypa\n[download-badge]: https://static.pepy.tech/badge/scikit-build-core/month\n[download-link]: https://pepy.tech/project/scikit-build-core\n[enscons]: https://pypi.org/project/enscons\n[github-discussions-badge]: https://img.shields.io/static/v1?label=Discussions&message=Ask&color=blue&logo=github\n[github-discussions-link]: https://github.com/orgs/scikit-build/discussions\n[hatchling]: https://hatch.pypa.io/latest\n[maturin]: https://www.maturin.rs\n[meson-python]: https://meson-python.readthedocs.io\n[py-build-cmake]: https://tttapa.github.io/py-build-cmake\n[pypi-link]: https://pypi.org/project/scikit-build-core/\n[pypi-platforms]: https://img.shields.io/pypi/pyversions/scikit-build-core\n[pypi-version]: https://badge.fury.io/py/scikit-build-core.svg\n[rtd-badge]: https://readthedocs.org/projects/scikit-build-core/badge/?version=latest\n[rtd-link]: https://scikit-build-core.readthedocs.io/en/latest/?badge=latest\n<!-- prettier-ignore-end -->\n",
"bugtrack_url": null,
"license": null,
"summary": "Build backend for CMake based projects",
"version": "0.10.7",
"project_urls": {
"Changelog": "https://scikit-build-core.readthedocs.io/en/latest/changelog.html",
"Discussions": "https://github.com/orgs/scikit-build/discussions",
"Documentation": "https://scikit-build-core.readthedocs.io",
"Homepage": "https://github.com/scikit-build/scikit-build-core",
"Issues": "https://github.com/scikit-build/scikit-build-core/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "88fe90476c4f6a1b2f922efa00d26e876dd40c7279e28ec18f08f0851ad21ba6",
"md5": "e3c0c2de2145cdad225610351cdbd474",
"sha256": "5e13ab7ca7c3c6dd019607c3a6f53cba67dade8757c4c4f75b459e2f90e4dbc3"
},
"downloads": -1,
"filename": "scikit_build_core-0.10.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e3c0c2de2145cdad225610351cdbd474",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 165511,
"upload_time": "2024-09-20T20:54:14",
"upload_time_iso_8601": "2024-09-20T20:54:14.181433Z",
"url": "https://files.pythonhosted.org/packages/88/fe/90476c4f6a1b2f922efa00d26e876dd40c7279e28ec18f08f0851ad21ba6/scikit_build_core-0.10.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3475ad5664c8050bbbea46a5f2b6a3dfbc6e6cf284826c0eee0a12f861364b3f",
"md5": "135f7366104d5f85723a0d18dc2b9a31",
"sha256": "04cbb59fe795202a7eeede1849112ee9dcbf3469feebd9b8b36aa541336ac4f8"
},
"downloads": -1,
"filename": "scikit_build_core-0.10.7.tar.gz",
"has_sig": false,
"md5_digest": "135f7366104d5f85723a0d18dc2b9a31",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 255019,
"upload_time": "2024-09-20T20:54:15",
"upload_time_iso_8601": "2024-09-20T20:54:15.873070Z",
"url": "https://files.pythonhosted.org/packages/34/75/ad5664c8050bbbea46a5f2b6a3dfbc6e6cf284826c0eee0a12f861364b3f/scikit_build_core-0.10.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-20 20:54:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "orgs",
"github_project": "scikit-build",
"github_not_found": true,
"lcname": "scikit-build-core"
}