Skip to content

gh-91246: Make zlib required instead of optional. #32043

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

Closed
wants to merge 3 commits into from

Conversation

gpshead
Copy link
Member

@gpshead gpshead commented Mar 22, 2022

This simplifies code by removing a pile of conditionals and
alternative logic.

Further simplification could be done in Modules/binascii.c to
simply have binascii.crc32 be a reference to zlib.crc32.

Also the conditional logic around zlib inflateCopy existing and
HAVE_ZLIB_COPY can likely be removed as that API was added to zlib
in 2003 and Python in 2006 via https://bugs.python.org/issue1503046.

The Windows build already treats zlib as required.

https://bugs.python.org/issue47090

This simplifies code by removing a pile of conditionals and
alternative logic.

Further simplification could be done in `Modules/binascii.c` to
simply have binascii.crc32 be a reference to zlib.crc32.

Also the conditional logic around zlib inflaceCopy existing and
`HAVE_ZLIB_COPY` can likely be removed as that API was added to zlib
in 2003.

The Windows build already treats zlib as required.
@gpshead gpshead added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 22, 2022
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @gpshead for commit 9cd7a06 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 22, 2022
@gpshead gpshead changed the title bpo-47090: Make zlib required instead of optional. gh-91246: Make zlib required instead of optional. Jan 23, 2023
@jamestwebber
Copy link
Contributor

can you remove test.support.requires_zlib as well, if it will always be there?

@hugovk
Copy link
Member

hugovk commented Feb 18, 2025

Continued in #130234.

@StanFromIreland
Copy link
Member

StanFromIreland commented Feb 19, 2025

Unfortunately most of this work can only be done when zlib is fully unsupported -- I am happy to come back to it then and finish it off :-)

Partial unsupport (Petr's plan): #130297

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

Successfully merging this pull request may close these issues.

7 participants