Closed genotrance closed 7 months ago
The command is generated by setuptools. I don't know setuptools very well, particularly nowadays, and I have no experience with mingw32-x64. I fear you need to dig into it on your system to figure out how exactly the command line is generated, but to me it looks like a setuptools bug if it produces -lpython312
when you say --build-option=--py-limited-api
explicitly.
Closing since not cffi issue.
Using cffi to generate a wrapper for libcurl. On Windows, cffi links with
-lpython312
for mingw and so the build does not work on other versions of Python.Simply changing the
-lpython312
to-lpython3
fixes the issue. I'm not sure where this command gets generated but presuming this repo is a good place to start.Build command line is as follows: