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

GH-132983: Use a standard autoconf version check for zstd by AA-Turner · Pull Request #133479 · python/cpython · GitHub

/ cpython Public

GH-132983: Use a standard autoconf version check for zstd - #133479

Merged
AA-Turner merged 1 commit into
python:mainfrom
AA-Turner:zstd-conf
May 6, 2025
Merged

GH-132983: Use a standard autoconf version check for zstd#133479
AA-Turner merged 1 commit into
python:mainfrom
AA-Turner:zstd-conf

Conversation

AA-Turner commented May 5, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

cc @ned-deily, it seems that this works & is simpler? I'll run buildbots.

A

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @AA-Turner for commit afbc562 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F133479%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label May 5, 2025

Copy link
Copy Markdown
Member

@AA-Turner That looks promising: it seems to handle my use case. Thanks!

cc: @emmatyping

Copy link
Copy Markdown
Member

... and the ghcr.io/cirruslabs/macos-runner:sonoma runner also now appears to successfully build _zstd.

emmatyping 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks! I didn't know this was something one could do. TIL

I'd like to wait for a RHEL8 buildbot to go green before merging to ensure that it works when there is a version of libzstd that is too old. Otherwise it looks much better.

Copy link
Copy Markdown
Member

And thank you for catching the original issue @ned-deily !

Copy link
Copy Markdown
Member

I didn't know this was something one could do.

There is always something in Autotools that no one knows you can do.

Copy link
Copy Markdown
Member Author

https://buildbot.python.org/#/builders/170/builds/1765

checking for libzstd >= 1.4.5... no
checking for zstd.h... no
checking for zdict.h... no
...
checking for stdlib extension module _zstd... missing

Seems to work.

A

AA-Turner requested a review from emmatyping May 6, 2025 00:29
AA-Turner merged commit 793402e into python:main May 6, 2025
AA-Turner deleted the zstd-conf branch May 6, 2025 00:35
emmatyping added a commit to emmatyping/cpython that referenced this pull request May 7, 2025
pythonGH-133479 removed the logic to check for libzstd outside of pkg-config.
This commit adds that logic back with a check for the version so that
users can provide their own libzstd. This is to bring parity with lzma,
bz2, and zlib detection.
emmatyping added a commit to emmatyping/cpython that referenced this pull request May 12, 2025
pythonGH-133479 removed the logic to check for libzstd outside of pkg-config.
This commit adds that logic back with a check for the version so that
users can provide their own libzstd. This is to bring parity with lzma,
bz2, and zlib detection.
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.

4 participants


Back | FazBrowse Home | New Git URL