Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 845801

Summary: dev-python/pygame_sdl2: needs upgrade to Python 3.10 (PythonCompatUpdate)
Product: Gentoo Linux Reporter: Sam James <sam>
Component: Current packagesAssignee: Andrew Savchenko <bircoph>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 823185    
Attachments: example.py

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-18 18:54:10 UTC
This package does not support Python 3.10. Please test it with Python 3.10 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://archives.gentoo.org/gentoo-dev/message/13aa993921f19b6b095297721ffb0d0b. Ask in #gentoo-python on IRC if need any help.

$ pkgcheck scan -k PythonCompatUpdate dev-python/pygame_sdl2
dev-python/pygame_sdl2
  PythonCompatUpdate: version 7.3.5-r2: PYTHON_COMPAT update available: python3_10
Comment 1 MW 2022-06-01 09:47:58 UTC
It works in python3_10, at least for my very simple programs.
Comment 2 MW 2022-07-10 13:39:52 UTC
Created attachment 790853 [details]
example.py

example program
Comment 3 MW 2022-07-10 13:42:14 UTC
(In reply to MW from comment #2)
> Created attachment 790853 [details]
> example.py
> 

Sample code from [1], with the line "import pygame" replaced by the lines "import pygame_sdl2 as pygame" and "pygame.import_as_pygame()". This runs with python3_10. What is holding this up?

[1] https://pythonprogramming.net/opengl-rotating-cube-example-pyopengl-tutorial/
Comment 4 Larry the Git Cow gentoo-dev 2022-07-26 17:03:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5de76f27e696dc897659a3f1efe30c864d8f46b4

commit 5de76f27e696dc897659a3f1efe30c864d8f46b4
Author:     Andrew Savchenko <bircoph@gentoo.org>
AuthorDate: 2022-07-26 16:54:26 +0000
Commit:     Andrew Savchenko <bircoph@gentoo.org>
CommitDate: 2022-07-26 17:03:08 +0000

    dev-python/pygame_sdl2: support newer python versions
    
    - Support python 3.10 and 3.11 (tested).
    - Update EAPI 7 -> 8.
    - Update jpeg dependency.
    
    Closes: https://bugs.gentoo.org/845801
    Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>

 dev-python/pygame_sdl2/pygame_sdl2-7.3.5-r2.ebuild | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)