Skip to content

Conversation

@rasapala
Copy link
Collaborator

@rasapala rasapala commented Oct 31, 2025

🛠 Summary

Removing cpython packages that are not required - not python3 --version on the current os.
Saving 29 MB.
For example in python 3.9 we remove:

/ovms/lib/python/openvino/_pyopenvino.cpython-310-x86_64-linux-gnu.so
/ovms/lib/python/openvino/_pyopenvino.cpython-311-x86_64-linux-gnu.so
/ovms/lib/python/openvino/_pyopenvino.cpython-312-x86_64-linux-gnu.so
/ovms/lib/python/openvino/_pyopenvino.cpython-313-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/jax/py_jax_frontend.cpython-310-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/jax/py_jax_frontend.cpython-311-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/jax/py_jax_frontend.cpython-312-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/jax/py_jax_frontend.cpython-313-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/onnx/py_onnx_frontend.cpython-310-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/onnx/py_onnx_frontend.cpython-311-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/onnx/py_onnx_frontend.cpython-312-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/onnx/py_onnx_frontend.cpython-313-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/paddle/py_paddle_frontend.cpython-310-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/paddle/py_paddle_frontend.cpython-311-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/paddle/py_paddle_frontend.cpython-312-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/paddle/py_paddle_frontend.cpython-313-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/pytorch/py_pytorch_frontend.cpython-310-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/pytorch/py_pytorch_frontend.cpython-311-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/pytorch/py_pytorch_frontend.cpython-312-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/pytorch/py_pytorch_frontend.cpython-313-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/tensorflow/py_tensorflow_frontend.cpython-310-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/tensorflow/py_tensorflow_frontend.cpython-311-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/tensorflow/py_tensorflow_frontend.cpython-312-x86_64-linux-gnu.so
/ovms/lib/python/openvino/frontend/tensorflow/py_tensorflow_frontend.cpython-313-x86_64-linux-gnu.so

🧪 Checklist

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

mkdir -vp /ovms_release/include && cp /ovms/src/ovms.h /ovms_release/include
ls -lahR /ovms_release/

# removing 29MB of cpython packages for unsupported python versions
Copy link
Collaborator

Choose a reason for hiding this comment

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

which versions are not supported? based on the PR description files for versions 3.10, 3.11, 3.12, 3.13 will be removed

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not python3 --version will be removed - so depending os os and the python that is intalled as default - those will be left

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Script checks what is current python version and removes the other packages. The description is an example for redhat.

@rasapala rasapala requested a review from dtrawins November 7, 2025 13:52
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.

3 participants