Skip to main content

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?

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

Project details


Download files

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

Source Distribution

builddriver-0.9.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

builddriver-0.9.0-py2.py3-none-any.whl (7.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file builddriver-0.9.0.tar.gz.

File metadata

  • Download URL: builddriver-0.9.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for builddriver-0.9.0.tar.gz
Algorithm Hash digest
SHA256 de5180b36b4d9cda84f9c0246865348fa5738302fe19774fc3f3346112b67c54
MD5 8c768db3b40460a636be761ed3eeb1c8
BLAKE2b-256 a7e4fde20926c7b262ff7e0e7e6fbb3d7321b0e51673b2a1ce032af7a06ceb1e

See more details on using hashes here.

File details

Details for the file builddriver-0.9.0-py2.py3-none-any.whl.

File metadata

  • Download URL: builddriver-0.9.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for builddriver-0.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 70532821e097600a02f9ef9f98dc4c17b79c62543c1e0c44e101a7d748a4be69
MD5 9543cbc4a21c61f944b0998ae31f3ddc
BLAKE2b-256 c69af80f649899547f3aa18c8773f28e8298771ef63fee04a4c479e2749dc72a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page