Skip to content

internal: fix python abi library name for mingw#6159

Draft
ognevny wants to merge 1 commit into
PyO3:mainfrom
ognevny:fix-mingw-libname
Draft

internal: fix python abi library name for mingw#6159
ognevny wants to merge 1 commit into
PyO3:mainfrom
ognevny:fix-mingw-libname

Conversation

@ognevny

@ognevny ognevny commented Jun 23, 2026

Copy link
Copy Markdown

usually mingw version of python are shipped with lib prefix, so we need to add it for proper linking

fixes #6157

@ognevny ognevny changed the title fix python abi library name for mingw internal: fix python abi library name for mingw Jun 23, 2026
@ognevny ognevny force-pushed the fix-mingw-libname branch from 4bc82d4 to 162acea Compare June 23, 2026 17:58
@ognevny

ognevny commented Jun 23, 2026

Copy link
Copy Markdown
Author

it seems that this didn't fix downstream builds. for me pyca/cryptography still fail :(

@messense is there any place I missed?

@messense

Copy link
Copy Markdown
Member

I think we need to change here

macro_rules! extern_libpython {

@ognevny ognevny force-pushed the fix-mingw-libname branch from 162acea to 74ae95f Compare June 26, 2026 06:06
@ognevny

ognevny commented Jun 26, 2026

Copy link
Copy Markdown
Author

I think we need to change here

macro_rules! extern_libpython {

that didn't help too...

https://github.com/msys2/MINGW-packages/actions/runs/28220768771/job/83601338236?pr=29942

@ognevny ognevny force-pushed the fix-mingw-libname branch 2 times, most recently from cde22a0 to 762e2f5 Compare June 26, 2026 06:59
@ognevny

ognevny commented Jun 26, 2026

Copy link
Copy Markdown
Author

@ognevny ognevny force-pushed the fix-mingw-libname branch from 762e2f5 to 6dc29f9 Compare June 26, 2026 07:05
@ognevny ognevny marked this pull request as draft June 26, 2026 07:05
usually mingw version of python are shipped with `lib` prefix, so we need to add it for proper
linking
@ognevny ognevny force-pushed the fix-mingw-libname branch from 6dc29f9 to cb54869 Compare June 26, 2026 07:13
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.

0.28 raw-dylib linking regressed MSYS2/MinGW (libpython3X.dll vs python3X.dll)

2 participants