Skip to main content

Build Driver

Possible integration into build:

Building project-foo, this may take a while
Compiling failed for compilation unit 'lib-bar'
Error: ‘stderr’ undeclared (first use in this function) in function qux.c line 23
The complete build log is available at '/tmp/build-392193.log'

A simple GCC/LLVM (clang) output parser. It reads lines from compiler and makefile runs, parse, split them and provides parsed information in a harmonized format.

It is possible to configure what you want: access to the pased information? Counters? Affected files?

Installation

Simple install this module via pip (pip for Python 2 is also supported)

pip3 install --user builddriver

Usage

As Python Module

import builddriver

result = builddriver.execute('make -C path/to/makfile')
# now wait until make finished, after that the following
# function can be used:
result.returncode()
result.errors_no()
result.warnings_no()
result.taillog()
result.build_duration()
result.build_duration_human()
result.log()
result.tmp_name()
result.tmp_file_rm()
list(result.errors())
list(result.warnings())

As Python Executable

Compiling the Linux Kernel (not a "good" example, because there is usually no warning in the build, except you increase the warning level somehow):

$ python3 -m builddriver make -j16 V=2 O=../linux-build
builddriver executing: 'make -j16 V=2 O=../linux-build'
Compilation SUCCEED in 297.833702 seconds
Number of warnings: 0

Metadata

Release files for builddriver 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for builddriver 0.9.0
File Size Uploaded Provenance Actions
builddriver-0.9.0.tar.gz 7.6 kB Without provenance Details for builddriver-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for builddriver 0.9.0
File Interpreter ABI Platform Actions
builddriver-0.9.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for builddriver-0.9.0-py2.py3-none-any.whl

Total release size: 15.1 kB

Release files / builddriver-0.9.0.tar.gz

Download URL builddriver-0.9.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
de5180b36b4d9cda84f9c0246865348fa5738302fe19774fc3f3346112b67c54
BLAKE2b-256 checksum
How to use checksums
a7e4fde20926c7b262ff7e0e7e6fbb3d7321b0e51673b2a1ce032af7a06ceb1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.6

Release files / builddriver-0.9.0-py2.py3-none-any.whl

Download URL builddriver-0.9.0-py2.py3-none-any.whl
Size 7.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
70532821e097600a02f9ef9f98dc4c17b79c62543c1e0c44e101a7d748a4be69
BLAKE2b-256 checksum
How to use checksums
c69af80f649899547f3aa18c8773f28e8298771ef63fee04a4c479e2749dc72a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.6

Security for builddriver 0.9.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page