Closed L-P closed 12 years ago
Yeah, a file generated by Cython (src/sf.h) doesn't compile. It works (at least on GNU/Linux) if you remove the DL_IMPORT macros (but don't remove their argument). Here is the current file, with the modifications: http://pastebin.com/U3sR62ub
It works, thanks. Maybe this should appear in the documentation?
I have been wondering what's the best way to solve this. I have added a patch.py script that will remove the offending macros. However, the setup script automatically generates the sf.h file and then tries to compile it, so it doesn't look like I can patch it automatically. Source released should make it easier for the user.
See the updated documentation: http://pysfml2-cython.readthedocs.org/en/latest/building.html#building-a-python-3-module
I followed the instructions and it failed for Python3, building for Python2 seems to work fine.
Here is the log :
Other infos :