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

Add pygame 2 #247

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions pygame2/pygame-2.4.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "pygame2",
"sources": [
{
"type": "archive",
"url": "https://files.pythonhosted.org/packages/b9/42/154038c4988d750ded799dc5d6ca4e631db93888e3d76084625b0588dfd2/pygame-2.4.0.tar.gz",
"sha256": "e3603e70e96ee30af1954ce57d4922a059402f368013e7138e90f1c03d185267"
}
],
"buildsystem": "simple",
"build-commands": [
"pip3 install --ignore-installed --no-deps --prefix=/app ."
Copy link
Contributor

@bbhtt bbhtt Sep 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should run setup.py cython, to recythonise the sources before installing. Upstream c sources might not match with the python C api available in the runtime or app. The c api time to time introduces changes leading to build failures like #201 and the python version is a moving target as it is in shared-modules and will get included in manifests that have different python versions.

https://www.pygame.org/wiki/GettingStarted#Compilation

Some of the .c files are generated by Cython from .pyx files. Running "setup.py cython" will update them.

],
"build-options": {
"env": {
"PORTMIDI_INC_PORTTIME": "1",
"PYGAME_EXTRA_BASE": "/app"
},
"arch": {
"aarch64": {
"env": {
"ORIGLIBDIRS": "/lib:/lib64:/lib/aarch64-linux-gnu"
}
},
"x86_64": {
"env": {
"ORIGLIBDIRS": "/lib:/lib64:/lib/x86_64-linux-gnu"
}
}
}
}
}