File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -399,9 +399,20 @@ def __color_reduce(c):
399399copyreg .pickle (Color , __color_reduce , __color_constructor )
400400
401401if "PYGAME_HIDE_SUPPORT_PROMPT" not in os .environ :
402+ python_implementation = sys .version
403+ python_version = platform .python_version ()
404+ from packaging import version
405+
406+ if (
407+ sys .platform not in ("wasi" , "wasm" )
408+ and (version .parse (python_version ) >= version .parse ("3.13.0" ))
409+ and "free-threading" in python_implementation
410+ ):
411+ python_version += f"t, { '' if sys ._is_gil_enabled () else 'No ' } GIL"
412+
402413 print (
403414 f"pygame-ce { ver } (SDL { '.' .join (map (str , get_sdl_version ()))} , "
404- f"Python { platform . python_version () } )"
415+ f"Python { python_version } )"
405416 )
406417
407418# cleanup namespace
You can’t perform that action at this time.
0 commit comments