Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build with --py-limited-api does not link library with -lpython3 on Windows with mingw32-x64 #229

Open
genotrance opened this issue Feb 19, 2024 · 2 comments

Comments

@genotrance
Copy link

pypa/setuptools#4224 describes the entire issue and I was told to reopen here. Ideally we could move that issue here. Originally started with python-cffi/cffi#61 who redirected to setuptools.

To summarize - mingw32 works great on Windows with --py-limited-api=cp32 and --compiler=mingw32, except for linking to the specific Python version -lpython312. If I manually change the link command to -lpython3 and update the wheel, it works on all Python versions. So the compile works fine, just not the link.

@lazka
Copy link
Contributor

lazka commented Mar 4, 2024

I've added a comment to the source issue: pypa/setuptools#4224 (comment)

@lazka
Copy link
Contributor

lazka commented Aug 17, 2024

I think this should be moved to setuptools, because py-limited-api is not part of distutils.

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

No branches or pull requests

2 participants