-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 fails "cc1: fatal error: src_c/pypm.c: No such file or directory" #4086
Comments
pypm is cython generated but its skipping cython compilation so the file isn't there, running this command first: python3 setup.py build_ext --inplace fixed it for me |
@0xnedarjercon , you're right, that fixes it. Here are the relevant lines (225-233) in setup.py: # If there is no generated C code, compile the cython/.pyx files
if any(x in ["build_ext", "build", "sdist", "bdist_wheel"] for x in sys.argv) and (
not glob.glob(os.path.join("src_c", "_sdl2", "audio.c"))
or not glob.glob(os.path.join("src_c", "pypm.c"))
):
compile_cython = True
print ("Compiling Cython files")
else:
print ("Skipping Cython compilation") I wonder if the documentation should say to run |
I was going to update the documentation myself and close out this ticket, but it seems that pygame.org registration is not working. I click the "New members signup" link which takes me to a registration form here: When I fill in that form, it doesn't submit as far as I can tell. The email field is highlighted and this error message is displayed:
No information is provided as to how one might request an invite. |
This is a bug. It should still work with the previous instructions, however a while ago I made it compile the Cython files rather than check in the .c files. The bug? |
Environment:
Report:
I followed the procedure under PYGAME 2 here. No problems with apt installing the dependencies. The command
setup.py -config -auto
produced this, which looks OK to me:However,
setup.py install --user
fails:The text was updated successfully, but these errors were encountered: