skillfed

powertrain-build

A Continuous Integration (CI) build system testing all configurations where a Simulink model is used.

powertrain-build v1.17.0 98.6K downloads/30d#13,073 on PyPI
Permissive license Apache License, Version 2.0 Active released

What it is and what it does

powertrain-build is a specialized CI build system for automotive embedded development, designed to test all configurations of Simulink/TargetLink models used across a project. It moves code generation from CI servers to developer machines, parallelizes job execution, and enforces signal consistency checks and ASIL-class variable declarations at the source. The package includes Ansible playbooks, templates, MATLAB scripts for model-to-code conversion, and a modular architecture (interface, lib, zone_controller) for managing build workflows.

It targets teams using TargetLink for embedded automotive code generation, particularly those needing multi-supplier model reuse (e.g., SPA2 Core System Platform) and memory optimization through variable-class-specific addressing. The system includes unit tests, supports C code review workflows, and fixes NVM variable handling issues common in automotive builds. Active maintenance and a permissive Apache 2.0 license make it suitable for both internal and collaborative development.

Use it for:

  • Test Simulink/TargetLink model configurations across multiple supplier platforms and hardware variants in a single CI pipeline.
  • Parallelize embedded code generation and testing by offloading model-to-code conversion to developer machines.
  • Enforce ASIL safety classification and signal consistency at code generation time rather than post-processing.
  • Reuse the same automotive models across different suppliers and platforms without duplicating build logic.
  • Integrate C code review workflows (e.g., Gerrit) by enabling reviewable, generated C code in a CI context.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A CI build system for testing Simulink/TargetLink model configurations with signal consistency checks, code generation, and ASIL variable handling for embedded automotive systems.

Yes, if you are an automotive embedded team using TargetLink/Simulink models and need a CI system that handles multi-configuration testing, ASIL variable management, and code generation at scale. The active maintenance, low install friction, permissive license, and no known vulnerabilities make it safe to adopt. No if you are not working in TargetLink/Simulink automotive workflows—the package is highly specialized and will not be useful outside that domain.

Install

powertrain-build on PyPI

pip

pip install powertrain-build

uv

uv add powertrain-build

poetry

poetry add powertrain-build

Installing powertrain-build

Before you install

Active maintenance with a release 3 days ago. Low install friction: pure Python wheel with 10 runtime dependencies including gitpython, requests, ruamel.yaml, scipy, and voluptuous—all widely available. No compiled extensions beyond pywin32.

License in practice

Licensed under Apache License, Version 2.0 (permissive). You can use, modify, and distribute this package freely in commercial and private projects, subject to standard Apache terms.

Quickstart

pip install powertrain-build

from powertrain_build import interface
# See docs/powertrain_build_introduction.md for project-specific usage

Designed for automotive embedded workflows; requires understanding of TargetLink/Simulink model structures and CI/CD integration patterns.

Verify before relying

  • Exact Python version support: classifiers list 3.6 and 3.14, but requires_python is unspecified—unclear if all intermediate versions work.
  • Windows-specific behavior: pywin32 is a runtime dependency, but package claims 'OS Independent'—clarify platform-specific code paths.
  • Integration scope: whether this replaces existing CI systems or augments them in a typical automotive development workflow.

Package facts

License Apache License, Version 2.0 (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 10 — gitpython, pbr, certifi, requests, ruamel.yaml.clib, ruamel.yaml, voluptuous, scipy, importlib-resources, pywin32
Maintenance actively maintained — 3 days since the last release
First released
Downloads 98,593/month — #13,073 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: powertrain_build-1.17.0-py3-none-any.whl

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: Other/Proprietary LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3.14Programming Language :: Python :: 3.6Topic :: Software Development :: Build ToolsTopic :: Software Development :: Code GeneratorsTopic :: Software Development :: Embedded Systems

Tags

simulink model ci build systemtargetlink code generationasil variable handlingembedded automotive buildsignal consistency checkscontinuous integration embedded systemspowertrain model testing
automotive-embeddedsimulink-targetlinkasil-safety

More Build Tools packages