Skip to content

gh-158683: Fix missing source files for _zstd in Modules/Setup - #158672

Merged
encukou merged 2 commits into
python:mainfrom
maxyz:setup_zstd
Oct 9, 2026
Merged

encukou merged 2 commits into
python:mainfrom
maxyz:setup_zstd

Conversation

@maxyz

@maxyz maxyz commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

The _zstd module also requires _zstd/zstddict.c, _zstd/compressor.c, and _zstd/decompressor.c.

@python-cla-bot

python-cla-bot Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

bedevere-app Bot commented Oct 3, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@maxyz

maxyz commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

I consider this change trivial, thus no issue nor added news.

@picnixz

picnixz commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

I consider this change trivial, thus no issue nor added news.

Sorry, but the triviality of a change is at a maintainer's discretion. Have you experienced an issue with the build with the original configuration? if so, please just open an issue with the traceback and what you did so that we can have an historical note. And a NEWS entry is still required since custom builds would now be correct I guess?

@StanFromIreland

Copy link
Copy Markdown
Member

This just changes comments in an example, I don't see a need for a blurb. The list actually used is correct:

@MODULE__ZSTD_TRUE@_zstd _zstd/_zstdmodule.c _zstd/zstddict.c _zstd/compressor.c _zstd/decompressor.c

@picnixz

picnixz commented Oct 3, 2026

Copy link
Copy Markdown
Member

This just changes comments in an example

It's not an example, it's the template that users can use for their local dev I think? or even for local builds and shipping I think?

@picnixz

picnixz commented Oct 3, 2026

Copy link
Copy Markdown
Member

Wait, if it's just an example, I wonder why we have it? why not having it in the docs instead?

@StanFromIreland

Copy link
Copy Markdown
Member

Oh no, sorry. I was a little mistaken, I thought we told people to just use this as an example/template (which we kind of do), but at the same time we do also tell them to use it:

cpython/Modules/Setup

Lines 80 to 83 in 1b015e6

# NOTE: Avoid editing this file directly. Local changes should go into
# Modules/Setup.local file. To enable all modules for testing, run
#
# sed -n -E 's/^#([a-z_\*].*)$/\1/p' Modules/Setup > Modules/Setup.local

I suppose this deserves a news entry then.

@bedevere-app

bedevere-app Bot commented Oct 3, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@maxyz maxyz changed the title Fix missing source files for _zstd in Modules/Setup gh- 158683: Fix missing source files for _zstd in Modules/Setup Oct 3, 2026
@maxyz maxyz changed the title gh- 158683: Fix missing source files for _zstd in Modules/Setup gh-158683: Fix missing source files for _zstd in Modules/Setup Oct 3, 2026
The _zstd module also requires _zstd/zstddict.c, _zstd/compressor.c, and
_zstd/decompressor.c.
@maxyz

maxyz commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the reviewing, I submitted the issue and added the news. Please take another look.

@encukou encukou 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, thank you.
I'll merge ~tomorrow if there are no objections.

@StanFromIreland StanFromIreland 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 (bar a little nit for the blurb).

Comment thread Misc/NEWS.d/next/Build/2026-10-03-23-23-12.gh-issue-158683.eMlp60.rst Outdated
…3.eMlp60.rst

Co-authored-by: Stan Ulbrych <stan@python.org>
@maxyz

maxyz commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

Applied the nit, thanks for the review.

@encukou
encukou merged commit 4b8dff4 into python:main Oct 9, 2026
46 checks passed
@encukou encukou added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Oct 9, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @maxyz for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @maxyz for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-app

bedevere-app Bot commented Oct 9, 2026

Copy link
Copy Markdown

GH-159055 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 9, 2026
@bedevere-app

bedevere-app Bot commented Oct 9, 2026

Copy link
Copy Markdown

GH-159056 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants