distutils LooseVersion and pkg_resources are deprecated and not available in later python versions.
This introduces two commits fixing these deprecation for Python3.8+ while maintaining functionality for Python3.7 and before.
NOTE: Reverting the second commit removes the backward compatibility to Python3.7, as importlib.metadata is introduced in Python3.8.
Fixes #
Where has this been tested?
Platform(s): Ubuntu 22.04
Python version(s): 3.7, 3.8, 3.10
Unreal Engine version(s): 4.26
CARLA version: 0.9.14 (fails as expected), 0.9.15
Possible Drawbacks
The second commit bloats the code a bit and should be reverted when python3.7 should not be supported anymore removing pkg_resources entirely.
Description
distutils LooseVersion and pkg_resources are deprecated and not available in later python versions. This introduces two commits fixing these deprecation for Python3.8+ while maintaining functionality for Python3.7 and before.
NOTE: Reverting the second commit removes the backward compatibility to Python3.7, as
importlib.metadata
is introduced in Python3.8.Fixes #
Where has this been tested?
Possible Drawbacks
The second commit bloats the code a bit and should be reverted when python3.7 should not be supported anymore removing pkg_resources entirely.
This change is