Skip to content

Compile less libtiff bits for wheels - #9970

Open
akx wants to merge 1 commit into
python-pillow:mainfrom
akx:a-little-tiff
Open

Compile less libtiff bits for wheels#9970
akx wants to merge 1 commit into
python-pillow:mainfrom
akx:a-little-tiff

Conversation

@akx

@akx akx commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

I noticed a timeout-failing build log for wheels copying HTML docs into place, which sounds quite unnecessary, so I took a critical look at the libtiff build flags.

libtiff contrib, C++, dependency tracking, docs, tests, tool binaries are no longer built with this, and for non-iOS builds, statically linked files neither.

@radarhere radarhere added the TIFF label Sep 7, 2026
@akx
akx marked this pull request as ready for review September 8, 2026 07:15
@radarhere

Copy link
Copy Markdown
Member

Could you provide a copy of the timeout log?

@akx

akx commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

@akx

akx commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Btw, regarding those runs:

  Download pillow dependency sources...
  100  297M  100  297M    0     0  26.4M      0  0:00:11  0:00:11 --:--:-- 23.4M

Does https://github.com/python-pillow/pillow-depends/archive/main.zip need to have 297 megs of stuff? I noticed the history of https://github.com/python-pillow/pillow-depends had reverted deletion of some old versions at some point...

@radarhere

Copy link
Copy Markdown
Member

I generally delete previous versions when adding a new version, so that it should support the latest version of Pillow and main. I've just cleaned it up now.

I'm not sure which commit you're talking about when you say deletion had been reverted. If it is python-pillow/pillow-depends@08e2235, then see #8603

@radarhere

Copy link
Copy Markdown
Member

I know you may not have meant this, but to be clear, only one of the logs you linked to shows a failure from a timeout. The other two are legitimate errors.

@akx

akx commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

@radarhere Ah, sure. I didn't double-check the failure reasons (just did uv run gha-stats grep html-prebuilt/tools/tiffinfo.html python-pillow/Pillow | grep -v success | grep -oE https://.+ (gha-stats being a little tool I built for figuring out what parts of GHA runs take longer, etc.))

--with-jpeg-lib-dir=$BUILD_PREFIX/lib
)
if [[ -z "$IOS_SDK" ]]; then
# iOS links libtiff statically, but otherwise we need the dylib.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How did you come to the conclusion that iOS behaves differently?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants