Skip to content

Fix no python copy of artifacts - #4457

Merged
rasapala merged 1 commit into
mainfrom
CVS-192913_no_python
Aug 18, 2026
Merged

Fix no python copy of artifacts#4457
rasapala merged 1 commit into
mainfrom
CVS-192913_no_python

Conversation

@rasapala

Copy link
Copy Markdown
Collaborator

🛠 Summary

JIRA CVS-192913
Add flags condition to copy.

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

Copilot AI lite review requested due to automatic review settings August 18, 2026 07:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the packaging script used in the build image to avoid copying Python binding artifacts (pyovms.so) when the Bazel build is configured with Python disabled, preventing packaging failures in “no-python” builds.

Changes:

  • Guard copying of pyovms.so behind a check for Python-enabled Bazel flags.
  • Align pyovms.so handling with existing later logic that conditionally packages Python components.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread create_package.sh
Comment on lines +30 to +32
if ! [[ $debug_bazel_flags == *"_py_off"* ]]; then
find /ovms/bazel-out/k8-*/bin/src/python/binding -name 'pyovms.so' -type f -exec cp -v {} /ovms_release/lib/ \;
fi
@rasapala
rasapala merged commit 632091c into main Aug 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants