FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-91246: Make zlib required instead of optional. by gpshead · Pull Request #32043 · python/cpython · GitHub

Repository navigation

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

Closed
gpshead wants to merge 3 commits into
python:mainfrom
gpshead:always-require-zlib
Closed

gpshead wants to merge 3 commits into
python:mainfrom
gpshead:always-require-zlib

Conversation

gpshead commented Mar 22, 2022 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

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 added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 22, 2022

Copy link
Copy Markdown

🤖 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 removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 22, 2022
gpshead changed the title bpo-47090: Make zlib required instead of optional. gh-91246: Make zlib required instead of optional. Jan 23, 2023

Copy link
Copy Markdown
Contributor

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

hugovk commented Feb 18, 2025

Copy link
Copy Markdown
Member

Continued in #130234.

StanFromIreland commented Feb 19, 2025 •
edited
Loading

Copy link
Copy Markdown
Member

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL