Skip to content

Update documented minimum required zlib library version - #140116

Merged
vstinner merged 2 commits into
python:mainfrom
StanFromIreland:zlib-ver
Oct 14, 2025
Merged

Update documented minimum required zlib library version#140116
vstinner merged 2 commits into
python:mainfrom
StanFromIreland:zlib-ver

Conversation

@StanFromIreland

@StanFromIrelandStanFromIreland commented Oct 14, 2025

Copy link
Copy Markdown
Member


* `libb2 <https://github.com/BLAKE2/libb2>`_ (:ref:`BLAKE2 <hashlib-blake2>`),
used by :mod:`hashlib` module.
* `libb2 <https://github.com/BLAKE2/libb2>`_ (:ref:`BLAKE2 <hashlib-blake2>`)

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I removed some unnecessary commas here.

Comment threadDoc/library/zlib.rst
incompatibilities between the Python module and versions of the zlib library
earlier than 1.1.3; 1.1.3 has a `security vulnerability <https://zlib.net/zlib_faq.html#faq33>`_, so we recommend using
1.1.4 or later.
has its own home page at https://www.zlib.net. zlib 1.2.2.1 is the minium

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This was wrong for a while:

#if defined(ZLIB_VERNUM) &&ZLIB_VERNUM<0x1221
#error "At least zlib version 1.2.2.1 is required"
#endif

* `Tcl/Tk <https://www.tcl-lang.org/>`_ 8.5.12 for the :mod:`tkinter` module.

* `zlib <https://www.zlib.net>`_ 1.1.4 is the reccomended minimum version for the
* `zlib <https://www.zlib.net>`_ 1.2.2.1 is the minimum version for the

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.

zlib 1.2.2.0 was released in 2004: https://madler.net/pipermail/zlib-announce_madler.net/2004/000002.html. So it sounds reasonable to require this (old) version.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

As I noted here, it is required by the code. One will get an error otherwise.

@vstinnervstinner left a comment

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.

LGTM

@emmatypingemmatyping left a comment

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.

Thanks!

@vstinner
vstinner merged commit 2ca3c85 into python:mainOct 14, 2025
79 of 81 checks passed
@github-project-automationgithub-project-automationBot moved this from Todo to Done in Docs PRsOct 14, 2025
@vstinner

Copy link
Copy Markdown
Member

Merged, thanks.

@StanFromIreland
StanFromIreland deleted the zlib-ver branch October 15, 2025 06:22
@encukou

Copy link
Copy Markdown
Member

#141204 effectively backports this to 3.14.

StanFromIreland added a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip issueskip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants

@StanFromIreland@vstinner@encukou@emmatyping