Skip to content

Commit 9971576

Browse files
committed
Use sys.version_info instead of packaging.version because packaging.version would require a bunch of CI updates
1 parent 3d892c1 commit 9971576

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src_py/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,10 @@ def __color_reduce(c):
401401
if "PYGAME_HIDE_SUPPORT_PROMPT" not in os.environ:
402402
python_implementation = sys.version
403403
python_version = platform.python_version()
404-
from packaging import version
405404

406405
if (
407406
sys.platform not in ("wasi", "wasm")
408-
and (version.parse(python_version) >= version.parse("3.13.0"))
407+
and (sys.version_info >= (3, 13, 0))
409408
and "free-threading" in python_implementation
410409
):
411410
python_version += f"t, {'' if sys._is_gil_enabled() else 'No '}GIL"

0 commit comments

Comments
 (0)