Skip to content

gh-160624: Stop embedding a manifest in Windows DLLs and extension modules - #160626

Open
mkanat wants to merge 1 commit into
python:mainfrom
mkanat:gh-160624-dll-manifest
Open

mkanat wants to merge 1 commit into
python:mainfrom
mkanat:gh-160624-dll-manifest

Conversation

@mkanat

@mkanat mkanat commented Oct 24, 2026 •

Copy link
Copy Markdown

The way that CPython compiles DLLs for Windows causes an unnecessary problem with long paths (#160624).

This removes the manifest, and the RT_MANIFEST fallback define that only it used, from PC/python_nt.rc and PC/sqlite3.rc. That covers python3XY.dll, python3.dll, sqlite3.dll, and every extension module. python.exe, pythonw.exe, and the launchers keep theirs.

…ion modules

Windows can't load a DLL with an embedded manifest from a path near
MAX_PATH, even with long paths enabled, so python.exe failed to start
from long paths. The manifest has no effect in a DLL. The executables
keep theirs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@python-cla-bot

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

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@mkanat

mkanat commented Oct 24, 2026

Copy link
Copy Markdown
Author

This also should be backported to all stable branches, most likely.

@mkanat
mkanat marked this pull request as ready for review October 24, 2026 22:10
@mkanat
mkanat requested a review from a team as a code owner October 24, 2026 22:10
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.

1 participant