-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-91246: Implement PEP 775: Make zlib required on platforms other than wasi #130297
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
Conversation
…rong comments, add news/whatsnew entries
Co-authored-by: Gregory P. Smith <greg@krypto.org>
This reverts commit be513cb.
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Please add zlib to build requirements. The version notes from Please also adjust docs for |
@@ -7,9 +7,22 @@ | |||
import random | |||
import sys | |||
from test.support import bigmemtest, _1G, _4G, is_s390x | |||
import importlib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep imports sorted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are all technically "Standard library imports"...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment was about alphabetically sorted, your reply about grouped by type 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry but where in PEP 8 is that specified, I cannot seem to find any mention of it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s a very common practice. But another one is to always import os and sys at the top.
Yet another is to sort by module length to get a nice pyramid drawing 📐
Misc/NEWS.d/next/Build/2025-02-19-00-00-00.gh-issue-91246.ahsgd3.rst
Outdated
Show resolved
Hide resolved
@@ -1310,6 +1310,10 @@ Build changes | |||
* GNU Autoconf 2.72 is now required to generate :file:`configure`. | |||
(Contributed by Erlend Aasland in :gh:`115765`.) | |||
|
|||
* zlib is now required to build CPytho on all platforms except WASI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* zlib is now required to build CPytho on all platforms except WASI. | |
* zlib is now required to build CPython on all platforms except WASI. |
PEP 775 was withdrawn. |
@StanFromIreland could you keep the previous title and add the mention of the PEP if you want? |
@merwok Is this sufficient? |
According to Petr's plan:
However binascii's re-implementation of crc32 cannot be removed till WASI supports zlib.
📚 Documentation preview 📚: https://cpython-previews--130297.org.readthedocs.build/