-
Notifications
You must be signed in to change notification settings - Fork 89
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
base: master
Are you sure you want to change the base?
Add pygame 2 #247
Conversation
Could you please give some examples of apps that make use of this module as bundled here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't add unecessary modules
It isn't clear which modules are unnecessary as same modules were bundled with SDL, looking around does help for sure but that won't be clear to someone contributing for the first time. |
The person who adds shared-module is expected to maintain it for the foreseeable future. They should know the build details and what dependency is necessary. |
Agreed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to have to go with denying this, tbh. It feels better to have in a BaseApp than a submodule, imo.
If it takes less than 30 minutes to build, maintenance overhead of a BaseApp is not worth it. |
I was thinking a more generic BaseApp, that just includes some common game libraries (pygame, newer SDL2, wine, gamemode). This would also solve #221. |
First you need to define a clear usecase, are these apps using wine for example? We already have a base app with wine. |
], | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --ignore-installed --no-deps --prefix=/app ." |
There was a problem hiding this comment.
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.
You are missing the addition to |
Since pygame 2 is based on SDL2, its dependencies are also added.