The graphics side of PyGame has been ported to UWP, I haven’t tested the remaining extensions, portmidi needs work, the sdl2 extensions collide in mixer against pygame’s mixer extension, imageext does not work, it didn’t link properly and I don’t know why it’s failing, and there is a super ugly change on the way __init__ gets called, I will push changes made to pygame to one of my repositories. The remaining grace is to test it on Xbox One, since it works for UWP it should not be a problem to finish up the port. The least change is that instead of calling, for example os.path.split(os.path.abspath(__file__))[0] you should call relative to the app’s folder (such as the Assets directory) Assets/Pygame For example. From: owner-pygame-users@xxxxxxxx <owner-pygame-users@xxxxxxxx> On Behalf Of René Dudfield Sorry if below sounds obvious, I don't think I understand your question :) Have you seen the python C extension guide? Python extensions are shared libraries, they can also theoretically be compiled statically. Although I don't know the last time someone tried to compile things in statically with pygame - so it probably doesn't currently work without some adjustments. You can either embed python inside an executable and tell it to load a module from a particular place. Or have a python executable which can load modules (either with a filename path, or a python module). "python filename.py", or "python -m amodulename". The setup.py uses distutils (and setuptools) to compile extensions. I don't know if there is support for WinRT extensions in the port you use (probably best to ask them if there is). It's also possible to create a visual studio project file with all of the extensions in instead if distutils does not work with the python port. Probably you want to get base.c compiling first, then things like display.c, surface.c, rect.c.
We test with python 3.5 as the minimum. We haven't gone out of our way to drop python 3.4 support, but we just don't test it anymore. It's probably got some issues, but may not take too much work to get going again. On Thu, Nov 5, 2020 at 9:53 AM <greentwip@xxxxxxxxx> wrote:
|