--- id: powertrain-build version: "1.17.0" license: Apache License, Version 2.0 license_treatment: permissive maintenance: active --- # powertrain-build — A Continuous Integration (CI) build system testing all configurations where a Simulink model is used. License: permissive · Maintenance: active · Downloads: 98.6K/mo ## 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 above — 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 pip install powertrain-build uv add powertrain-build 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: unspecified - Install friction: low - Maintenance: active - Downloads: 98.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags simulink model ci build system, targetlink code generation, asil variable handling, embedded automotive build, signal consistency checks, continuous integration embedded systems, powertrain model testing, automotive-embedded, simulink-targetlink, asil-safety [View on SkillFed](https://skillfed.io/packages/powertrain-build) · [View on PyPI](https://pypi.org/project/powertrain-build/)