{"id":23196237,"url":"https://github.com/hgn/builddriver","last_synced_at":"2026-05-20T14:08:15.395Z","repository":{"id":57416620,"uuid":"192981240","full_name":"hgn/builddriver","owner":"hgn","description":"Python Package to Execute \u0026 Capture Build Pipelines (support for gcc, llvm, ...)","archived":false,"fork":false,"pushed_at":"2020-09-03T18:51:40.000Z","size":36,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T01:08:11.948Z","etag":null,"topics":["build-tool","builder","clang","cmake","gcc","llvm","make","package","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hgn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-20T20:08:30.000Z","updated_at":"2023-10-17T21:32:26.000Z","dependencies_parsed_at":"2022-09-26T17:11:26.484Z","dependency_job_id":null,"html_url":"https://github.com/hgn/builddriver","commit_stats":null,"previous_names":[],"tags_count":6,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgn%2Fbuilddriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgn%2Fbuilddriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgn%2Fbuilddriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgn%2Fbuilddriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hgn","download_url":"https://codeload.github.com/hgn/builddriver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247308086,"owners_count":20917628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-tool","builder","clang","cmake","gcc","llvm","make","package","python","python3"],"created_at":"2024-12-18T14:17:28.126Z","updated_at":"2026-05-20T14:08:15.347Z","avatar_url":"https://github.com/hgn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build Driver\n\n\nPossible integration into build:\n\n```\nBuilding project-foo, this may take a while\nCompiling failed for compilation unit 'lib-bar'\nError: ‘stderr’ undeclared (first use in this function) in function qux.c line 23\nThe complete build log is available at '/tmp/build-392193.log'\n```\n\nA simple GCC/LLVM (clang) output parser. It reads lines from compiler and\nmakefile runs, parse, split them and provides parsed information in a\nharmonized format.\n\nIt is possible to configure what you want: access to the pased information?\nCounters? Affected files?\n\n## Installation\n\nSimple install this module via pip (pip for Python 2 is also supported)\n\n```\npip3 install --user builddriver\n```\n\n## Usage\n\n### As Python Module\n\n```\nimport builddriver\n\nresult = builddriver.execute('make -C path/to/makfile')\n# now wait until make finished, after that the following\n# function can be used:\nresult.returncode()\nresult.errors_no()\nresult.warnings_no()\nresult.taillog()\nresult.build_duration()\nresult.build_duration_human()\nresult.log()\nresult.tmp_name()\nresult.tmp_file_rm()\nlist(result.errors())\nlist(result.warnings())\n```\n\n### As Python Executable\n\nCompiling the Linux Kernel (not a \"good\" example, because there is usually no\nwarning in the build, except you increase the warning level somehow):\n\n```sh\n$ python3 -m builddriver make -j16 V=2 O=../linux-build\nbuilddriver executing: 'make -j16 V=2 O=../linux-build'\nCompilation SUCCEED in 297.833702 seconds\nNumber of warnings: 0\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhgn%2Fbuilddriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhgn%2Fbuilddriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhgn%2Fbuilddriver/lists"}