Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Execute make, cmake, maven and parses gcc/llvm output

Project description

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?


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

pip3 install --user builddriver


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:

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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for builddriver, version 0.9.0
Filename, size File type Python version Upload date Hashes
Filename, size builddriver-0.9.0-py2.py3-none-any.whl (7.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size builddriver-0.9.0.tar.gz (7.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page