|
| 1 | +Configurations |
| 2 | +============== |
| 3 | + |
| 4 | +.. confval:: cmake.minimum-version |
| 5 | + :type: ``Version`` |
| 6 | + |
| 7 | + |
| 8 | + DEPRECATED in 0.8; use version instead. |
| 9 | + |
| 10 | +.. confval:: cmake.version |
| 11 | + :type: ``SpecifierSet`` |
| 12 | + |
| 13 | + |
| 14 | + 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. |
| 15 | + |
| 16 | +.. confval:: cmake.args |
| 17 | + :type: ``list[str]`` |
| 18 | + |
| 19 | + |
| 20 | + 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``. |
| 21 | + |
| 22 | +.. confval:: cmake.define |
| 23 | + :type: ``EnvVar`` |
| 24 | + |
| 25 | + |
| 26 | + A table of defines to pass to CMake when configuring the project. Additive. |
| 27 | + |
| 28 | +.. confval:: cmake.verbose |
| 29 | + :type: ``bool`` |
| 30 | + |
| 31 | + |
| 32 | + DEPRECATED in 0.10, use build.verbose instead. |
| 33 | + |
| 34 | +.. confval:: cmake.build-type |
| 35 | + :type: ``str`` |
| 36 | + :default: "Release" |
| 37 | + |
| 38 | + The build type to use when building the project. Valid options are: "Debug", "Release", "RelWithDebInfo", "MinSizeRel", "", etc. |
| 39 | + |
| 40 | +.. confval:: cmake.source-dir |
| 41 | + :type: ``Path`` |
| 42 | + :default: "." |
| 43 | + |
| 44 | + The source directory to use when building the project. Currently only affects the native builder (not the setuptools plugin). |
| 45 | + |
| 46 | +.. confval:: cmake.targets |
| 47 | + :type: ``list[str]`` |
| 48 | + |
| 49 | + |
| 50 | + DEPRECATED in 0.10; use build.targets instead. |
| 51 | + |
| 52 | +.. confval:: ninja.minimum-version |
| 53 | + :type: ``Version`` |
| 54 | + |
| 55 | + |
| 56 | + DEPRECATED in 0.8; use version instead. |
| 57 | + |
| 58 | +.. confval:: ninja.version |
| 59 | + :type: ``SpecifierSet`` |
| 60 | + :default: ">=1.5" |
| 61 | + |
| 62 | + 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. |
| 63 | + |
| 64 | +.. confval:: ninja.make-fallback |
| 65 | + :type: ``bool`` |
| 66 | + :default: true |
| 67 | + |
| 68 | + If Ninja is not present on the system or is older than required, it will be downloaded via PyPI if this is false. |
| 69 | + |
| 70 | +.. confval:: logging.level |
| 71 | + :type: ``"NOTSET" | "DEBUG" | "INFO" | "WARNING" | "ERROR" | "CRITICAL"`` |
| 72 | + :default: "WARNING" |
| 73 | + |
| 74 | + The logging level to display, "DEBUG", "INFO", "WARNING", and "ERROR" are possible options. |
| 75 | + |
| 76 | +.. confval:: sdist.include |
| 77 | + :type: ``list[str]`` |
| 78 | + |
| 79 | + |
| 80 | + Files to include in the SDist even if they are skipped by default. Supports gitignore syntax. |
| 81 | + |
| 82 | +.. confval:: sdist.exclude |
| 83 | + :type: ``list[str]`` |
| 84 | + |
| 85 | + |
| 86 | + Files to exclude from the SDist even if they are included by default. Supports gitignore syntax. |
| 87 | + |
| 88 | +.. confval:: sdist.reproducible |
| 89 | + :type: ``bool`` |
| 90 | + :default: true |
| 91 | + |
| 92 | + 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. |
| 93 | + |
| 94 | +.. confval:: sdist.cmake |
| 95 | + :type: ``bool`` |
| 96 | + :default: false |
| 97 | + |
| 98 | + If set to True, CMake will be run before building the SDist. |
| 99 | + |
| 100 | +.. confval:: wheel.packages |
| 101 | + :type: ``list[str]`` |
| 102 | + :default: ["src/<package>", "python/<package>", "<package>"] |
| 103 | + |
| 104 | + 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. |
| 105 | + |
| 106 | +.. confval:: wheel.py-api |
| 107 | + :type: ``str`` |
| 108 | + |
| 109 | + |
| 110 | + The Python tags. The default (empty string) will use the default Python version. You can also set this to "cp38" to enable the CPython 3.8+ 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. |
| 111 | + |
| 112 | +.. confval:: wheel.expand-macos-universal-tags |
| 113 | + :type: ``bool`` |
| 114 | + :default: false |
| 115 | + |
| 116 | + 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. |
| 117 | + |
| 118 | +.. confval:: wheel.install-dir |
| 119 | + :type: ``str`` |
| 120 | + |
| 121 | + |
| 122 | + 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". |
| 123 | + |
| 124 | +.. confval:: wheel.license-files |
| 125 | + :type: ``list[str]`` |
| 126 | + |
| 127 | + |
| 128 | + A list of license files to include in the wheel. Supports glob patterns. The default is ``["LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*"]``. Must not be set if ``project.license-files`` is set. |
| 129 | + |
| 130 | +.. confval:: wheel.cmake |
| 131 | + :type: ``bool`` |
| 132 | + :default: true |
| 133 | + |
| 134 | + If set to True (the default), CMake will be run before building the wheel. |
| 135 | + |
| 136 | +.. confval:: wheel.platlib |
| 137 | + :type: ``bool`` |
| 138 | + |
| 139 | + |
| 140 | + 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. |
| 141 | + |
| 142 | +.. confval:: wheel.exclude |
| 143 | + :type: ``list[str]`` |
| 144 | + |
| 145 | + |
| 146 | + 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. |
| 147 | + |
| 148 | +.. confval:: wheel.build-tag |
| 149 | + :type: ``str`` |
| 150 | + |
| 151 | + |
| 152 | + The build tag to use for the wheel. If empty, no build tag is used. |
| 153 | + |
| 154 | +.. confval:: backport.find-python |
| 155 | + :type: ``Version`` |
| 156 | + :default: "3.26.1" |
| 157 | + |
| 158 | + If CMake is less than this value, backport a copy of FindPython. Set to 0 disable this, or the empty string. |
| 159 | + |
| 160 | +.. confval:: editable.mode |
| 161 | + :type: ``"redirect" | "inplace"`` |
| 162 | + :default: "redirect" |
| 163 | + |
| 164 | + Select the editable mode to use. Can be "redirect" (default) or "inplace". |
| 165 | + |
| 166 | +.. confval:: editable.verbose |
| 167 | + :type: ``bool`` |
| 168 | + :default: true |
| 169 | + |
| 170 | + Turn on verbose output for the editable mode rebuilds. |
| 171 | + |
| 172 | +.. confval:: editable.rebuild |
| 173 | + :type: ``bool`` |
| 174 | + :default: false |
| 175 | + |
| 176 | + Rebuild the project when the package is imported. The build-directory must be set. |
| 177 | + |
| 178 | +.. confval:: build.tool-args |
| 179 | + :type: ``list[str]`` |
| 180 | + |
| 181 | + |
| 182 | + Extra args to pass directly to the builder in the build step. |
| 183 | + |
| 184 | +.. confval:: build.targets |
| 185 | + :type: ``list[str]`` |
| 186 | + |
| 187 | + |
| 188 | + The build targets to use when building the project. Empty builds the default target. |
| 189 | + |
| 190 | +.. confval:: build.verbose |
| 191 | + :type: ``bool`` |
| 192 | + :default: false |
| 193 | + |
| 194 | + Verbose printout when building. |
| 195 | + |
| 196 | +.. confval:: build.requires |
| 197 | + :type: ``list[str]`` |
| 198 | + |
| 199 | + |
| 200 | + Additional ``build-system.requires``. Intended to be used in combination with ``overrides``. |
| 201 | + |
| 202 | +.. confval:: install.components |
| 203 | + :type: ``list[str]`` |
| 204 | + |
| 205 | + |
| 206 | + The components to install. If empty, all default components are installed. |
| 207 | + |
| 208 | +.. confval:: install.strip |
| 209 | + :type: ``bool`` |
| 210 | + :default: true |
| 211 | + |
| 212 | + 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). |
| 213 | + |
| 214 | +.. confval:: generate[].path |
| 215 | + :type: ``Path`` |
| 216 | + |
| 217 | + |
| 218 | + The path (relative to platlib) for the file to generate. |
| 219 | + |
| 220 | +.. confval:: generate[].template |
| 221 | + :type: ``str`` |
| 222 | + |
| 223 | + |
| 224 | + 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. |
| 225 | + |
| 226 | +.. confval:: generate[].template-path |
| 227 | + :type: ``Path`` |
| 228 | + |
| 229 | + |
| 230 | + The path to the template file. If empty, a template must be set. |
| 231 | + |
| 232 | +.. confval:: generate[].location |
| 233 | + :type: ``"install" | "build" | "source"`` |
| 234 | + :default: "install" |
| 235 | + |
| 236 | + 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. |
| 237 | + |
| 238 | +.. confval:: messages.after-failure |
| 239 | + :type: ``str`` |
| 240 | + |
| 241 | + |
| 242 | + A message to print after a build failure. |
| 243 | + |
| 244 | +.. confval:: messages.after-success |
| 245 | + :type: ``str`` |
| 246 | + |
| 247 | + |
| 248 | + A message to print after a successful build. |
| 249 | + |
| 250 | +.. confval:: search.site-packages |
| 251 | + :type: ``bool`` |
| 252 | + :default: true |
| 253 | + |
| 254 | + Add the python build environment site_packages folder to the CMake prefix paths. |
| 255 | + |
| 256 | +.. confval:: metadata |
| 257 | + :type: ``dict[str,dict[str,Any]]`` |
| 258 | + |
| 259 | + |
| 260 | + List dynamic metadata fields and hook locations in this table. |
| 261 | + |
| 262 | +.. confval:: strict-config |
| 263 | + :type: ``bool`` |
| 264 | + :default: true |
| 265 | + |
| 266 | + Strictly check all config options. If False, warnings will be printed for unknown options. If True, an error will be raised. |
| 267 | + |
| 268 | +.. confval:: experimental |
| 269 | + :type: ``bool`` |
| 270 | + :default: false |
| 271 | + |
| 272 | + Enable early previews of features not finalized yet. |
| 273 | + |
| 274 | +.. confval:: minimum-version |
| 275 | + :type: ``Version`` |
| 276 | + :default: "0.11" # current version |
| 277 | + |
| 278 | + If set, this will provide a method for backward compatibility. |
| 279 | + |
| 280 | +.. confval:: build-dir |
| 281 | + :type: ``str`` |
| 282 | + |
| 283 | + |
| 284 | + The build directory. Defaults to a temporary directory, but can be set. |
| 285 | + |
| 286 | +.. confval:: fail |
| 287 | + :type: ``bool`` |
| 288 | + :default: false |
| 289 | + |
| 290 | + Immediately fail the build. This is only useful in overrides. |
0 commit comments