No project description provided
Project description
hatch-cython
Table of Contents
Usage
The build hook name is cython
.
- pyproject.toml
[tool.hatch.build.targets.wheel.hooks.cython]
dependencies = ["hatch-cython"]
[tool.hatch.build.targets.wheel.hooks.cython.options]
<!-- include .h or .cpp directories -->
includes = []
<!-- include numpy headers -->
include_numpy = false
include_pyarrow = false
include_somelib = {
pkg = "somelib",
<!-- somelib.gets_include() -> str -->
include = "gets_include",
<!-- somelib.gets_libraries() -> list[str] -->
libraries = "gets_libraries",
<!-- somelib.gets_library_dirs() -> list[str] -->
library_dirs = "gets_library_dirs",
<!-- somelib.some_setup_op() before build -->
required_call = "some_setup_op"
}
compile_args = [
<!-- single string -->
"-std=c++17",
<!-- list of platforms + arg -->
{ platforms = ["nt"], arg = "-std=c++17" },
<!-- single platform + arg -->
{ platforms = "posix", arg = "-I/abc/def" },
]
directives = { boundscheck = false, nonecheck = false, language_level = 3, binding = true }
compile_kwargs = { }
- hatch.toml
[build.targets.wheel.hooks.cython]
dependencies = ["hatch-cython"]
[build.targets.wheel.hooks.cython.options]
<!-- optional, defaults below -->
directives = { boundscheck = false, nonecheck = false, language_level = 3, binding = true }
compile-args = [
"-O3",
]
includes = []
include_numpy = false
<!-- equivalent to include_numpy = true -->
include_somelib = { pkg = "pyarrow", include="get_include", libraries="get_libraries", library_dirs="get_library_dirs", required_call="create_library_symlinks" }
License
hatch-cython
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hatch_cython-0.1.5.tar.gz
(12.4 kB
view hashes)
Built Distribution
Close
Hashes for hatch_cython-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | debf05bb4b289a849c4ec12a7364abda4a8bd5e8bc2820e150c98b2cb17cc9c7 |
|
MD5 | 9c4d9004972a4d6499097dc7c4c204f8 |
|
BLAKE2b-256 | 01d9ac2ee813af92110b07170f1e98819f2732fa592091a1b36136fd12cdd577 |