Closed DragonMoffon closed 1 month ago
I do not have much time to maintain the pyglet backend. I'd be happy to accept a PR, If you have time to investigate more.
If you are able to find a solution that is compatible with all Python compatible version ( 3.10 to 3.12), I'd be happy to accept it.
Thanks for reporting :-)
So I've looked into how Distutils looseversion works, and it's quite simple. It just converts the version into a list (converting what it can to ints) and then does piecewise comparisons.
I'll make a small PR removing distutils when I can. Do you know any other places distutils might be used? I'll do a full cleanup.
Hello, and thank you for your answer!
I'll make a small PR removing distutils when I can.
Great news
Do you know any other places distutils might be used? I'll do a full cleanup.
I think this is the only place it is used.
@pthom is it possible to release a patch version with this update?
https://github.com/pthom/imgui_bundle/blob/be8339b41ae36e3cd0de372f151ef9590ef44eee/bindings/imgui_bundle/python_backends/pyglet_backend.py#L224-L236
This function still uses the deprecated
distutils
module'sLooseVersion
. It appears the recommended fix is to usepackaging.version.parse
.https://packaging.pypa.io/en/latest/version.html