brokkr
Build tooling for native C++ libraries shipped as Python wheels (the provider-wheel family: pyyggdrasil, pypddl,
pytyr, pyrunir). A provider wheel bundles its native library, headers and exported CMake package under
<pkg>/native/, and other wheels build and link against it through relative rpaths.
- CMake (
find_package(brokkr)):brokkr_read_project_version(usable beforeproject()),brokkr_find_python_native_prefix,brokkr_register_*,brokkr_python_package_init,brokkr_python_module_rpaths,brokkr_install_native_export,brokkr_install_runtime_path_fixup,brokkr_install_provider_env,brokkr_install_python_stubs,brokkr_install_python_files,brokkr_unity_directories(unity batches by directory),brokkr_limit_compile_jobs(a target's TUs compiled at most so many at once; no limit when the count is empty),brokkr_add_rule_tests(the layout checks as tests,ctest -L rules). - Fallback check (
python -m pybrokkr.fallbacks --compile-commands build/compile_commands.json, withpybrokkr[fallbacks]): reports the silent fallbacks of a C++ project, as the coding rules define them. - Compile cost (
python -m pybrokkr.compile_cost): records every compile's time and peak memory through CMake's compiler launcher, compares two builds by object, and finds what a build compiles in more than one translation unit, as the template rules measure it. - Layout check (
python -m pybrokkr.layout <repository>...): every tracked file of a repository against the directory layout the docs state (an allowlist of patterns, the required files, the mirroring ofinclude/, stub packages, unit tests that include their component, headers that are included), each finding reported.python -m pybrokkr.registered --sources <build>/brokkr/sources.txt <repository>adds what needs the build: every source built by a target, every test script run. - Unity check (
python -m pybrokkr.unity_check --compile-commands build/compile_commands.json <directory>..., withpybrokkr[fallbacks]): the file-local functions that a unity batch of each directory would make overloads of each other. - PEP 517 backend (
pybrokkr.build_backend.ProviderBackend): scikit-build-core, with the providers' prefixes put onCMAKE_PREFIX_PATHand the loader path, then the wheel's stubs published and its native libraries stripped.
[build-system]
requires = ["scikit-build-core>=1.0.3,<2", "pybrokkr>=0.1,<0.2", "pyyggdrasil>=0.6,<0.7"]
build-backend = "mypkg_build_backend"
backend-path = ["python"]
# python/mypkg_build_backend.py
from pybrokkr.build_backend import ProviderBackend
ProviderBackend(
package="mypkg",
providers=("pyyggdrasil",),
prefix_defines={"pyyggdrasil": "YGGDRASIL_NATIVE_PREFIX"},
).install_hooks(globals())
cmake_minimum_required(VERSION 3.21)
find_package(brokkr REQUIRED) # wheel builds: found through pybrokkr's cmake.prefix entry point
brokkr_read_project_version(MYPKG_VERSION "${CMAKE_CURRENT_SOURCE_DIR}/pyproject.toml")
project(mypkg VERSION "${MYPKG_VERSION}" LANGUAGES CXX)
In a manual configure, pass -Dbrokkr_DIR="$(python -m pybrokkr --cmake-dir)".
Rules
The rules the libraries share (the release cycle, the template and include rules and the coding rules) are
maintained here, in docs/, and published at https://planning-and-learning.github.io/brokkr/.
Metadata
Release files for pybrokkr 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pybrokkr-0.1.3.tar.gz | 46.8 kB | With provenance | Details for pybrokkr-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pybrokkr-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for pybrokkr-0.1.3-py3-none-any.whl |
Total release size: 101.1 kB
Release files / pybrokkr-0.1.3.tar.gz
| Download URL | pybrokkr-0.1.3.tar.gz |
|---|---|
| Size | 46.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02577ac4a1189d64ca527874f1739467dfee0fa1d3b62a90df3abd8276292f59
|
|
BLAKE2b-256 checksum How to use checksums |
d6d653f6c5cc9f263cb5bd23354a4727de3ce1106e407b9641ec6e3ca4a5d43c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logRelease files / pybrokkr-0.1.3-py3-none-any.whl
| Download URL | pybrokkr-0.1.3-py3-none-any.whl |
|---|---|
| Size | 54.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aeffb337e1de23e11d6840a9efa7d2b2b42f3710d925800bc38e1e379f68126f
|
|
BLAKE2b-256 checksum How to use checksums |
3a08f2a35c02bbc4f84c60db152cc13d593bfb534b32bdc4651a99f2a26ac8d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logSecurity for pybrokkr 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pybrokkr-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.