Skip to content

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]>
scott-wilson pushed a commit to scott-wilson/OpenImageIO that referenced this pull request May 17, 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]>
Signed-off-by: Scott Wilson <[email protected]>
scott-wilson pushed a commit to scott-wilson/OpenImageIO that referenced this pull request May 18, 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]>
Signed-off-by: Scott Wilson <[email protected]>
@lgritz lgritz added the build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. label Jul 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Wheels contain duplicated shared libraries causing bloat

2 participants