Closed rhogenson closed 1 year ago
I hit the same thing on OpenBSD, with version 2.1.0.
Same issues happens for me when building this in a flatpak:
............................................................................................................................................ _byte-compiling /app/lib/python3.10/site-packages/pygame_sdl2/version.py to version.cpython-310.pyc running install_headers creating /app/include creating /app/include/python3.10 creating /app/include/python3.10/pygame_sdl2 copying src/pygame_sdl2/pygame_sdl2.h -> /app/include/python3.10/pygame_sdl2 error: can't copy 'gen3/pygame_sdl2.rwobject_api.h': doesn't exist or not a regular file Error: module pygamesdl2: Child process exited with code 1
I had suffered from the same problem.
.c files in gen3 directory (maybe in gen directory too) are incomplete, so there is no _api.h files.
However .c files prevent cython invocations. Then you will not get _api.h files in the directory.
I have successfully build 2.1.0 under NetBSD/amd64 after rm gen3/* gen/*
.
I'm attempting to build the nightly version (2017-07-01-dc79adbb) of pygame_sdl2 using the command
And it fails with the message
The full build log is here:
I'm using Gentoo Linux in case that's relevant.