From 5b42dace2afb500fa78ee7393e0c93f7fa7aac23 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Fri, 9 May 2025 17:14:34 +0100 Subject: [PATCH 1/3] Add zstd --- core-developers/experts.rst | 2 ++ getting-started/setup-building.rst | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core-developers/experts.rst b/core-developers/experts.rst index ec9fc23067..0b8312732b 100644 --- a/core-developers/experts.rst +++ b/core-developers/experts.rst @@ -77,6 +77,7 @@ collections rhettinger* collections.abc rhettinger*, stutzbach^ colorsys compileall carljm +compression concurrent.futures pitrou, brianquinlan, gpshead* configparser ambv* contextlib ncoghlan, 1st1 @@ -258,6 +259,7 @@ zipapp pfmoore zipfile alanmcintyre^, serhiy-storchaka, Yhg1s, gpshead zipimport Yhg1s* zlib Yhg1s, gpshead* +compression.zstd ==================== ============================================= diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index 03b2777b8e..1fa1b25ff6 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -636,9 +636,9 @@ some of CPython's modules (for example, ``zlib``). $ sudo dnf install \ gcc gcc-c++ gdb lzma glibc-devel libstdc++-devel openssl-devel \ - readline-devel zlib-devel libffi-devel bzip2-devel xz-devel \ - sqlite sqlite-devel sqlite-libs libuuid-devel gdbm-libs perf \ - expat expat-devel mpdecimal python3-pip + readline-devel zlib-devel libzstd-devel libffi-devel bzip2-devel \ + xz-devel sqlite sqlite-devel sqlite-libs libuuid-devel gdbm-libs \ + perf expat expat-devel mpdecimal python3-pip On **Debian**, **Ubuntu**, and other ``apt``-based systems, try to get the @@ -674,7 +674,7 @@ some of CPython's modules (for example, ``zlib``). $ sudo apt-get install build-essential gdb lcov pkg-config \ libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \ libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \ - lzma lzma-dev tk-dev uuid-dev zlib1g-dev libmpdec-dev + lzma lzma-dev tk-dev uuid-dev zlib1g-dev libmpdec-dev libzstd-dev Note that Debian 12 and Ubuntu 24.04 do not have the ``libmpdec-dev`` package. You can safely remove it from the install list above and the Python build will use a bundled version. From 716b981ecbdefde1bf86f65f9eb1a2f75ba3e47f Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sat, 10 May 2025 08:45:18 +0100 Subject: [PATCH 2/3] Review --- core-developers/experts.rst | 2 +- getting-started/setup-building.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core-developers/experts.rst b/core-developers/experts.rst index 0b8312732b..380b6198df 100644 --- a/core-developers/experts.rst +++ b/core-developers/experts.rst @@ -78,6 +78,7 @@ collections.abc rhettinger*, stutzbach^ colorsys compileall carljm compression +compression.zstd concurrent.futures pitrou, brianquinlan, gpshead* configparser ambv* contextlib ncoghlan, 1st1 @@ -259,7 +260,6 @@ zipapp pfmoore zipfile alanmcintyre^, serhiy-storchaka, Yhg1s, gpshead zipimport Yhg1s* zlib Yhg1s, gpshead* -compression.zstd ==================== ============================================= diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index 1fa1b25ff6..9959ac12b1 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -709,7 +709,7 @@ some of CPython's modules (for example, ``zlib``). For **Homebrew**, install dependencies using ``brew``:: - $ brew install pkg-config openssl@3 xz gdbm tcl-tk mpdecimal + $ brew install pkg-config openssl@3 xz gdbm tcl-tk mpdecimal zstd .. tab:: Python 3.13+ @@ -750,7 +750,7 @@ some of CPython's modules (for example, ``zlib``). For **MacPorts**, install dependencies using ``port``:: - $ sudo port install pkgconfig openssl xz gdbm tcl tk +quartz mpdecimal + $ sudo port install pkgconfig openssl xz gdbm tk +quartz mpdecimal zstd .. tab:: Python 3.13+ From 43feaac118f9ca2f6f435d893b01dfbd4c611269 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sat, 10 May 2025 12:53:35 +0100 Subject: [PATCH 3/3] Hugo's review --- core-developers/experts.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core-developers/experts.rst b/core-developers/experts.rst index 380b6198df..b5cde1782d 100644 --- a/core-developers/experts.rst +++ b/core-developers/experts.rst @@ -66,7 +66,6 @@ bdb binascii bisect rhettinger* builtins -bz2 calendar cmath cmd @@ -77,7 +76,10 @@ collections rhettinger* collections.abc rhettinger*, stutzbach^ colorsys compileall carljm -compression +compression.bz2 +compression.gzip +compression.lzma +compression.zlib Yhg1s, gpshead* compression.zstd concurrent.futures pitrou, brianquinlan, gpshead* configparser ambv* @@ -116,7 +118,6 @@ getpass gettext glob grp -gzip hashlib tiran, gpshead*, picnixz heapq rhettinger*, stutzbach^ hmac tiran, gpshead*, picnixz @@ -137,7 +138,6 @@ libmpdec linecache locale malemburg logging vsajip -lzma mailbox marshal math rhettinger, stutzbach^ @@ -259,7 +259,6 @@ xmlrpc zipapp pfmoore zipfile alanmcintyre^, serhiy-storchaka, Yhg1s, gpshead zipimport Yhg1s* -zlib Yhg1s, gpshead* ==================== =============================================