Skip to content

Conversation

@henriquegemignani
Copy link
Member

No description provided.

@henriquegemignani henriquegemignani requested a review from a team November 4, 2025 19:45
"""Removes python modules that should not be included in the final build."""

# Remove Pillow's support for AVIF images. We currently do not use this format, and it's 7+ mb.
try:
Copy link
Contributor

Choose a reason for hiding this comment

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

why cant we just install an avif-less pillow package?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

And just deleting the file is kinda recommend. And the code does handle it properly too.
python-pillow/Pillow#8869 (comment)

We could also build the wheels ourselves, but ew :P

@henriquegemignani henriquegemignani added this pull request to the merge queue Nov 4, 2025
Merged via the queue into main with commit 5f8f1f0 Nov 4, 2025
25 checks passed
@henriquegemignani henriquegemignani deleted the feature/remove-pillow-avif branch November 4, 2025 20:54
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