Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(wheels): Ensure python-based builds use maj.min.patch SO versioning #4634

Merged

Conversation

zachlewis
Copy link
Collaborator

Always use patch-specific SO versioning for scikit-build-core-based builds, even when OpenImageIO_SUPPORTED_RELEASE=ON.

Fixes #4621

Description

Ensures that Python-based builds only bundle a single copy each of libOpenImageIO and libOpenImageIO_Util shared libraries.

Tests

Previously, $ uv sync -v --reinstall -Ccmake.define.OpenImageIO_SUPPORTED_RELEASE=1 would bundle both .so.3.0 and .so.3.0.3 copies of libraries when installing to a local virtual environment.

With this fix, only .so.3.0.3 copies of libraries are installed.

Always use patch-specific SO versioning for scikit-build-core-based builds, even when OpenImageIO_SUPPORTED_RELEASE=ON.

Fixes AcademySoftwareFoundation#4621

Signed-off-by: Zach Lewis <[email protected]>
Copy link
Collaborator

@lgritz lgritz left a comment

Choose a reason for hiding this comment

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

LGTM

@lgritz lgritz merged commit bfa48c8 into AcademySoftwareFoundation:main Feb 13, 2025
65 checks passed
@zachlewis zachlewis deleted the fix_inflated_wheel_size branch February 14, 2025 04:46
lgritz pushed a commit to lgritz/OpenImageIO that referenced this pull request Feb 14, 2025
…ng (AcademySoftwareFoundation#4634)

Always use patch-specific SO versioning for scikit-build-core-based
builds, even when OpenImageIO_SUPPORTED_RELEASE=ON.

Fixes AcademySoftwareFoundation#4621

Ensures that Python-based builds only bundle a single copy each of
libOpenImageIO and libOpenImageIO_Util shared libraries.

## Tests

Previously, `$ uv sync -v --reinstall
-Ccmake.define.OpenImageIO_SUPPORTED_RELEASE=1` would bundle both
.so.3.0 and .so.3.0.3 copies of libraries when installing to a local
virtual environment.

With this fix, only .so.3.0.3 copies of libraries are installed.

Signed-off-by: Zach Lewis <[email protected]>
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.

[BUG] Wheels contain duplicated shared libraries causing bloat
2 participants