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):
399
399
copyreg .pickle (Color , __color_reduce , __color_constructor )
400
400
401
401
if "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
+
402
413
print (
403
414
f"pygame-ce { ver } (SDL { '.' .join (map (str , get_sdl_version ()))} , "
404
- f"Python { platform . python_version () } )"
415
+ f"Python { python_version } )"
405
416
)
406
417
407
418
# cleanup namespace
You can’t perform that action at this time.
0 commit comments