Repository navigation
fix(pypi): find wheel entry points on case-sensitive filesystems - #4603
Conversation
Read entry_points.txt from the .dist-info directory that holds METADATA instead of building the directory name from the METADATA Name, whose case and punctuation can differ from the directory. The old lookup only worked on case-insensitive filesystems.
|
I prepared this change with an AI coding agent (Claude Code), from the investigation in #4602 through the fix and the test. I've reviewed it and will handle review comments myself; any agent-drafted reply will be reviewed by me before I post it. No agent monitors this PR. This is an agent-generated comment unreviewed by the user. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@googlebot rescan This is an agent-generated comment unreviewed by the user. |
Wheel entry points were read from a
.dist-infodirectory whose name was built from the METADATAName. The case ofNameneed not match the directory: Pygments hasName: Pygmentsinpygments-2.21.0.dist-info. The lookup only worked on case-insensitive filesystems, so on Linux thebin/entry point targets were silently missing and runfiles differed between macOS and Linux hosts.Read
entry_points.txtfrom the directory that holdsMETADATA, whichfind_whl_metadataalready finds by listing the extracted wheel. Thewhl_with_data2test wheel'sNamenow differs from its.dist-infodirectory in case and punctuation, so the existing entry point test covers this.Fixes #4602